Skip to content

Commit 88ec3a8

Browse files
committed
library.sh: Fix opcache path
Signed-off-by: Tobias Knöppler <[email protected]>
1 parent 07689a4 commit 88ec3a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/library.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,10 @@ function get_nc_config_value() {
598598
function clear_opcache() {
599599
# shellcheck disable=SC2155
600600
local data_dir="$(get_nc_config_value datadirectory)"
601-
! [[ -d "${data_dir:-/var/www/data}/.opcache" ]] || {
601+
! [[ -d "${data_dir:-/var/www/nextcloud/data}/.opcache" ]] || {
602602
echo "Clearing opcache..."
603603
echo "This can take some time. Please don't interrupt the process/close your browser tab."
604-
rm -rf "${data_dir:-/var/www/data}/.opcache"/*
604+
rm -rf "${data_dir:-/var/www/nextcloud/data}/.opcache"/* "${data_dir:-/var/www/nextcloud/data}/.opcache"/.[!.]*
605605
echo "Done."
606606
}
607607
service php${PHPVER}-fpm reload

0 commit comments

Comments
 (0)