GoAway update

This commit is contained in:
tremor021 2025-09-27 22:07:54 +02:00
parent f4d9317f4d
commit 2595154233

View File

@ -39,11 +39,11 @@ RestartSec=5
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now goaway systemctl enable -q --now goaway
ADMIN_PASS=$( for i in {1..30}; do
tail -n0 -f /var/log/goaway.log 2>/dev/null \ ADMIN_PASS=$(awk -F': ' '/Randomly generated admin password:/ {print $2; exit}' /var/log/goaway.log)
| grep -m1 'Randomly generated admin password:' \ [ -n "$ADMIN_PASS" ] && break
| awk -F': ' '{print $2}' sleep 1
) done
{ {
echo "GoAway Credentials" echo "GoAway Credentials"
echo "Admin User: admin" echo "Admin User: admin"