Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-01-03 15:17:15 +0300
committernachoparker <nacho@ownyourbits.com>2018-01-03 15:17:15 +0300
commita1a2f512e678dded59ff1847de9efede55b0cde8 (patch)
treeb2d09b2a703650940564300b0f36601098d97a91
parentfd71cb6d604333a0de2ae9d4ae5ff4b4a46d0d97 (diff)
nc-restore: update redis passwordv0.44.4
-rw-r--r--etc/nextcloudpi-config.d/nc-restore.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/nc-restore.sh b/etc/nextcloudpi-config.d/nc-restore.sh
index f43ddf44..7e3fee31 100644
--- a/etc/nextcloudpi-config.d/nc-restore.sh
+++ b/etc/nextcloudpi-config.d/nc-restore.sh
@@ -105,6 +105,11 @@ EOF
# update fail2ban logpath
sed -i "s|logpath =.*|logpath = /var/www/nextcloud/data/nextcloud.log|" /etc/fail2ban/jail.conf
+ # update redis credentials
+ local REDISPASS="$( grep "^requirepass" /etc/redis/redis.conf | cut -f2 -d' ' )"
+ [[ "$REDISPASS" != "" ]] && \
+ sed -i "s|'password'.*|'password' => '$REDISPASS',|" config/config.php
+
sudo -u www-data php occ maintenance:mode --off
sudo -u www-data php occ files:scan --all