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