diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-12-10 04:08:33 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-01-05 04:14:52 +0300 |
commit | d5c1f0058b43c22ebb132f51df0ea144fbd927ec (patch) | |
tree | b826d4fefb22afc2513a57e9464a486b9fd24dcc /bin/ncp-provisioning.sh | |
parent | 21fee19452410817d26b6caebd0a91b5968b0a44 (diff) |
rework to use JSON based cfg and more
Diffstat (limited to 'bin/ncp-provisioning.sh')
-rw-r--r-- | bin/ncp-provisioning.sh | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bin/ncp-provisioning.sh b/bin/ncp-provisioning.sh index c905a01b..7316fa4b 100644 --- a/bin/ncp-provisioning.sh +++ b/bin/ncp-provisioning.sh @@ -5,7 +5,6 @@ ## redis provisioning CFG=/var/www/nextcloud/config/config.php -CONFDIR=/usr/local/etc/ncp-config.d/ REDISPASS="$( grep "^requirepass" /etc/redis/redis.conf | cut -f2 -d' ' )" ### IF redis password is the default one, generate a new one @@ -51,9 +50,7 @@ EOF ## nc.limits.sh (auto)adjustments: number of threads, memory limits... source /usr/local/etc/library.sh -cd "$CONFDIR" &>/dev/null -activate_script nc-limits.sh -cd - &>/dev/null +run_app nc-limits ## Check for interrupted upgrades and rollback BKP="$( ls -1t /var/www/nextcloud-bkp_*.tar.gz 2>/dev/null | head -1 )" @@ -62,11 +59,4 @@ BKP="$( ls -1t /var/www/nextcloud-bkp_*.tar.gz 2>/dev/null | head -1 )" ncp-restore "$BKP" && rm "$BKP" } -## Fix permissions on NCP folders. The main reason for this is to make devel docker container work -[[ -e $CONFDIR ]] && { - chown -R root:www-data "$CONFDIR"/* - chmod 660 "$CONFDIR"/* - chmod 750 "$CONFDIR"/l10n -} - exit 0 |