diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-01-03 15:17:15 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-01-03 15:17:15 +0300 |
commit | a1a2f512e678dded59ff1847de9efede55b0cde8 (patch) | |
tree | b2d09b2a703650940564300b0f36601098d97a91 | |
parent | fd71cb6d604333a0de2ae9d4ae5ff4b4a46d0d97 (diff) |
nc-restore: update redis passwordv0.44.4
-rw-r--r-- | etc/nextcloudpi-config.d/nc-restore.sh | 5 |
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 |