mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-17 22:31:49 +02:00
Add data directory option on NextCloud
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user