mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-27 06:53:25 +01:00
14 lines
395 B
Bash
14 lines
395 B
Bash
#!/usr/bin/with-contenv bash
|
|
|
|
# Change data directory
|
|
datadirectory=$(bashio::config 'data_directory')
|
|
sed -i "s/%%datadirectory%%/${datadirectory}/g" /defaults/config.php
|
|
|
|
# copy config
|
|
[[ ! -f /data/config/www/nextcloud/config/config.php ]] && \
|
|
cp /defaults/config.php /data/config/www/nextcloud/config/config.php
|
|
|
|
# permissions
|
|
chown abc:abc \
|
|
/data/config/www/nextcloud/config/config.php
|