From 49ef78f932b4af37b7bfcc1e08f28ee14d5a194f Mon Sep 17 00:00:00 2001 From: Dale Anderson Date: Fri, 12 Jan 2024 15:44:03 -0800 Subject: [PATCH] Fix: Search deep enough to find settings(.local).php, but still return quickly. We only need to spot 1 file for the search to be effective. --- scripts/deployables/acro-add-user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deployables/acro-add-user.sh b/scripts/deployables/acro-add-user.sh index 9e18391..701243f 100755 --- a/scripts/deployables/acro-add-user.sh +++ b/scripts/deployables/acro-add-user.sh @@ -826,7 +826,7 @@ function add_pubkey_key_to_all_web_accounts () { continue fi local WEB_FILE_COUNT - WEB_FILE_COUNT="$(find -L "$HOMEDIR/www" -maxdepth 3 -type f \( -name '*.php' -o -name '*.htm' -o -name '*.html' \) -printf '.'|wc -c)" + WEB_FILE_COUNT="$(find -L "$HOMEDIR/www" -maxdepth 5 -type f \( -name '*.php' -o -name '*.htm' -o -name '*.html' \) -printf '.' -quit | wc -c)" if ! is_positive_integer "$WEB_FILE_COUNT"; then info "Skipping $HOMEDIR because WEB_FILE_COUNT was not a positive integer: $WEB_FILE_COUNT" continue