diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-04-10 17:22:53 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-04-10 17:22:53 +0300 |
commit | bfd11b08003dbfd9cad1b7f78b090c2675f71287 (patch) | |
tree | ccebe16a2d18f1c87ecb27e72e268a27d87c6dd8 /bin/ncp-provisioning.sh | |
parent | c9bdf0221abe1f353dca2d149550d2a080d0b83e (diff) |
docker: fix provisioning for the plain NC container
Diffstat (limited to 'bin/ncp-provisioning.sh')
-rw-r--r-- | bin/ncp-provisioning.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/ncp-provisioning.sh b/bin/ncp-provisioning.sh index 41065561..702157ef 100644 --- a/bin/ncp-provisioning.sh +++ b/bin/ncp-provisioning.sh @@ -75,8 +75,11 @@ PHPTHREADS=0 } ## Fix permissions on NCP folders. The main reason for this is to make devel docker container work -chown -R root:www-data /usr/local/etc/nextcloudpi-config.d/* -chmod 660 /usr/local/etc/nextcloudpi-config.d/* -chmod 750 /usr/local/etc/nextcloudpi-config.d/l10n +CONFDIR="/usr/local/etc/nextcloudpi-config.d/" +[[ -e $CONFDIR ]] && { + chown -R root:www-data "$CONFDIR"/* + chmod 660 "$CONFDIR"/* + chmod 750 "$CONFDIR"/l10n +} exit 0 |