From e802beffa65055fcbe9eff2dd62b808325794677 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 3 Feb 2026 15:44:15 +0100 Subject: [PATCH] test --- install/nginx-ui-install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install/nginx-ui-install.sh b/install/nginx-ui-install.sh index fddacbe5a..d8800b43f 100644 --- a/install/nginx-ui-install.sh +++ b/install/nginx-ui-install.sh @@ -79,10 +79,14 @@ systemctl daemon-reload msg_ok "Created Service" msg_info "Creating Initial Admin User" +systemctl start nginx-ui +sleep 3 +systemctl stop nginx-ui +sleep 1 RESET_OUTPUT=$(/usr/local/bin/nginx-ui reset-password --config /usr/local/etc/nginx-ui/app.ini 2>&1) -ADMIN_PASS=$(echo "$RESET_OUTPUT" | grep -oP 'Password: \K.*' | tail -1) +ADMIN_PASS=$(echo "$RESET_OUTPUT" | grep -oP 'Password: \K\S+' | tail -1) if [[ -z "$ADMIN_PASS" ]]; then - ADMIN_PASS="admin" + ADMIN_PASS="Check ~/nginx-ui.creds after manual reset" fi { echo "Nginx-UI Credentials"