Files
hassio-addons/nextcloud/rootfs/etc/cont-init.d/60-memcache.sh
2021-12-29 15:36:39 -03:00

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