From b218d07e990eb06f414d0e1fe53e3478d465a907 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Tue, 24 Mar 2026 21:38:06 +0100 Subject: [PATCH] fixes --- ct/yourls.sh | 6 +++--- install/yourls-install.sh | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ct/yourls.sh b/ct/yourls.sh index 0f75bc00..c7a34cbb 100644 --- a/ct/yourls.sh +++ b/ct/yourls.sh @@ -60,7 +60,7 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW} Access the admin panel using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/admin/${CL}" -echo -e "${INFO}${YW} Complete the database setup by visiting:${CL}" +echo -e "${INFO}${YW} First, complete the database setup at:${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/admin/install.php${CL}" +echo -e "${INFO}${YW} Admin credentials are in the install log:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}grep -A2 'admin' /opt/yourls/user/config.php${CL}" diff --git a/install/yourls-install.sh b/install/yourls-install.sh index 1f6b9219..202f4725 100644 --- a/install/yourls-install.sh +++ b/install/yourls-install.sh @@ -60,9 +60,12 @@ server { } location ~ \.php\$ { + try_files \$uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)\$; fastcgi_pass unix:/run/php/php8.3-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; + fastcgi_param PATH_INFO \$fastcgi_path_info; include fastcgi_params; } @@ -85,7 +88,3 @@ msg_ok "Configured Nginx" motd_ssh customize cleanup_lxc - -echo -e "${TAB}${GATEWAY}${BGN}Admin URL:${CL} http://${LOCAL_IP}/admin/" -echo -e "${TAB}${GATEWAY}${BGN}Username:${CL} admin" -echo -e "${TAB}${GATEWAY}${BGN}Password:${CL} ${YOURLS_PASS}"