Let prompts fall back to their default when there is no input

This commit is contained in:
MickLesk
2026-09-25 08:07:09 +02:00
parent c69359d704
commit c21365f204
52 changed files with 91 additions and 88 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ Password: ${PASS}
EOF
msg_ok "Set up Tinyauth"
read -r -p "${TAB3}Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): " app_url
read -r -p "${TAB3}Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): " app_url || app_url=""
msg_info "Creating Service"
cat <<EOF >/opt/tinyauth/.env
@@ -80,7 +80,7 @@ EOF
echo "${RELEASE}" >~/.tinyauth
msg_ok "Installed Tinyauth"
read -r -p "${TAB3}Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): " app_url
read -r -p "${TAB3}Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): " app_url || app_url=""
cat <<EOF >/opt/tinyauth/.env
TINYAUTH_DATABASE_PATH=/opt/tinyauth/database.db