From e64364b0b4a8cd25c1e5e1913195f884916b6706 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 21 Nov 2020 02:32:09 +0100 Subject: [PATCH] occ_file_scan_all_accounts.sh: add 'occ maintenance:repair' to script. --- occ_file_scan_all_accounts.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/occ_file_scan_all_accounts.sh b/occ_file_scan_all_accounts.sh index 871fc79..06d1617 100755 --- a/occ_file_scan_all_accounts.sh +++ b/occ_file_scan_all_accounts.sh @@ -351,6 +351,17 @@ if $terminal ; then echo "" fi +echononl " Running 'occ maintenance:repair'.." +su -c "$PHP_BIN ${INSTALL_DIR}/occ maintenance:repair" -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