Skip to content

Commit

Permalink
nc-restore: update redis password
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Jan 3, 2018
1 parent fd71cb6 commit a1a2f51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etc/nextcloudpi-config.d/nc-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a1a2f51

Please sign in to comment.