Skip to content

Commit

Permalink
library.sh: Fix opcache path
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Knöppler <[email protected]>
  • Loading branch information
theCalcaholic committed Jan 21, 2023
1 parent 8310c25 commit d9386e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,10 @@ function get_nc_config_value() {
function clear_opcache() {
# shellcheck disable=SC2155
local data_dir="$(get_nc_config_value datadirectory)"
! [[ -d "${data_dir:-/var/www/data}/.opcache" ]] || {
! [[ -d "${data_dir:-/var/www/nextcloud/data}/.opcache" ]] || {
echo "Clearing opcache..."
echo "This can take some time. Please don't interrupt the process/close your browser tab."
rm -rf "${data_dir:-/var/www/data}/.opcache"/*
rm -rf "${data_dir:-/var/www/nextcloud/data}/.opcache"/* "${data_dir:-/var/www/nextcloud/data}/.opcache"/.[!.]*
echo "Done."
}
service php${PHPVER}-fpm reload
Expand Down

0 comments on commit d9386e2

Please sign in to comment.