fix(installer): say what the email prompt is for (#2784)

This commit is contained in:
Hampus
2026-09-14 23:07:03 +02:00
committed by GitHub
parent 50cec92738
commit 9bbf6c513b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -221,7 +221,7 @@ function Show-FluxerUsage {
Write-FluxerLine ''
Write-FluxerLine 'Options:'
Write-FluxerLine ' -Domain <host> Hostname the instance answers on. Prompted when absent.'
Write-FluxerLine ' -Email <address> Address written as FLUXER_VAPID_EMAIL. Prompted when absent.'
Write-FluxerLine ' -Email <address> Contact email for web push. Prompted when absent.'
Write-FluxerLine ' -Engine <command> Container engine to drive. Default: docker, or podman when'
Write-FluxerLine ' docker is absent.'
Write-FluxerLine ' -Dir <path> Working directory. Default: the fluxer folder in the home'
@@ -2001,7 +2001,7 @@ function Invoke-FluxerInstall {
}
$domainValue = Resolve-FluxerValue $Domain 'Hostname the instance answers on' '-Domain' $allowPrompt
$emailValue = Resolve-FluxerValue $Email 'Address to write as FLUXER_VAPID_EMAIL' '-Email' $allowPrompt
$emailValue = Resolve-FluxerValue $Email 'Contact email for web push' '-Email' $allowPrompt
Assert-FluxerDomain $domainValue
Assert-FluxerEmail $emailValue
+2 -2
View File
@@ -207,7 +207,7 @@ Usage: sh install.sh --domain <host> --email <address> [options]
Options:
--domain <host> Hostname the instance answers on. Prompted when absent.
--email <address> Address the operator reads. Prompted when absent.
--email <address> Contact email for web push. Prompted when absent.
--engine <command> Container engine to drive. Default docker, or podman
when docker is absent.
--dir <path> Working directory. Default ~/fluxer, or the working
@@ -650,7 +650,7 @@ fluxer_resolve_values() {
if [ "$opt_non_interactive" -eq 1 ] || [ "$opt_dry_run" -eq 1 ] || [ ! -t 0 ]; then
fluxer_bad_usage '--email is required.'
fi
fluxer_prompt 'Address you read' || fluxer_fail 1 'No address given.'
fluxer_prompt 'Contact email for web push' || fluxer_fail 1 'No address given.'
opt_email=$fluxer_prompt_value
fi
fluxer_valid_domain "$opt_domain" || fluxer_bad_usage "--domain $opt_domain is not a lowercase hostname. Give a bare hostname such as chat.example.com."