Fix pangolin_create_site blocking on read in non-interactive mode
The site name prompt used read -rp which blocks when stdin is piped. Now uses default name automatically when NON_INTERACTIVE=true. Bunker Admin
This commit is contained in:
parent
36b709b911
commit
0510420772
@ -1194,8 +1194,12 @@ pangolin_create_site() {
|
|||||||
local domain="${CONFIGURED_DOMAIN:-cmlite.org}"
|
local domain="${CONFIGURED_DOMAIN:-cmlite.org}"
|
||||||
local site_name
|
local site_name
|
||||||
|
|
||||||
read -rp " Site name [default: changemaker-$domain]: " site_name
|
if [[ "$NON_INTERACTIVE" == "true" ]]; then
|
||||||
site_name=${site_name:-changemaker-$domain}
|
site_name="changemaker-$domain"
|
||||||
|
else
|
||||||
|
read -rp " Site name [default: changemaker-$domain]: " site_name
|
||||||
|
site_name=${site_name:-changemaker-$domain}
|
||||||
|
fi
|
||||||
|
|
||||||
info "Fetching Newt credentials..."
|
info "Fetching Newt credentials..."
|
||||||
local defaults_resp
|
local defaults_resp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user