Add script 'occ_file_scan_app-data.sh'.

This commit is contained in:
2022-02-22 17:13:36 +01:00
parent 522df2e02e
commit fdc04674e8
3 changed files with 480 additions and 2 deletions

View File

@ -415,6 +415,17 @@ fi
blank_line
echononl " Running 'occ files:cleanup'.."
su -c "$PHP_BIN ${INSTALL_DIR}/occ files:cleanup" -s /bin/bash $HTTP_USER > $log_file 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else
echo_failed
error "$(cat "$log_file")"
fi
blank_line
for _user in $(ls ${DATA_DIR}) ; do
[[ "$_user" =~ ^appdata_ ]] && continue
[[ "$_user" =~ ^files_ ]] && continue