LibrePortal/scripts/checks/requirements/check_passwords.sh
librelad 875a60f90f LibrePortal v0.1.0 — initial release
A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys,
Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun
VPN routing, and a web dashboard to manage it all.

Free & open forever to self-host; optional paid hosted services fund it.
See PROMISE.md.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-21 20:37:54 +01:00

23 lines
609 B
Bash
Executable File

#!/bin/bash
checkPasswordsRequirement()
{
if [[ $CFG_REQUIREMENT_PASSWORDS == "true" ]]; then
### Password randomizer
pass_found=0
for config_file in "$configs_dir"/*; do
if [ -f "$config_file" ] && grep -q "RANDOMIZEDPASSWORD" "$config_file"; then
pass_found=1
fi
done
if [ "$pass_found" -eq 1 ]; then
isNotice "Passwords found to randomize in config files. Update will start soon."
((preinstallneeded++))
else
isSuccessful "No passwords found to change."
fi
fi
}