Add data directory option on NextCloud

This commit is contained in:
Marcio Granzotto
2021-12-29 15:36:39 -03:00
parent fe24fcf98f
commit c01b4f89c6
4 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
#!/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