Skip to content

Commit

Permalink
nc-restore: fix situation opcache dir was moved
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent edbfa67 commit 6df5f73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/nextcloudpi-config.d/nc-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ EOF

mysql -u root -p$DBPASSWD nextcloud < nextcloud-sqlbkp_*.bak || { echo -e "error restoring nextcloud database"; return 1; }

# Just in case we moved the opcache dir
sed -i "s|^opcache.file_cache=.*|opcache.file_cache=$BASEDIR_/nextcloud/data/.opcache|" /etc/php/7.0/mods-available/opcache.ini

cd $BASEDIR_/nextcloud
sudo -u www-data php occ maintenance:mode --off
}
Expand Down

0 comments on commit 6df5f73

Please sign in to comment.