Skip to content

Commit

Permalink
Fix: Search deep enough to find settings(.local).php,
Browse files Browse the repository at this point in the history
but still return quickly. We only need to spot 1 file for
the search to be effective.
  • Loading branch information
dale-c-anderson committed Jan 12, 2024
1 parent 9503998 commit 49ef78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deployables/acro-add-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49ef78f

Please sign in to comment.