mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
New bookworm install script: force read from /dev/tty, otherwise stdin is 'not what you expect' in a curl|bash context ... credits to ljf
This commit is contained in:
parent
e0353f4bae
commit
d95cdfd7ec
1 changed files with 2 additions and 2 deletions
4
bookworm
4
bookworm
|
@ -290,7 +290,7 @@ function confirm_installation() {
|
|||
|
||||
EOF
|
||||
|
||||
read -p " Are you sure you want to proceed (y/n) ? " choice
|
||||
read -p " Are you sure you want to proceed (y/n) ? " choice < /dev/tty
|
||||
choice="$(echo $choice | tr '[A-Z]' '[a-z]')"
|
||||
[[ "$choice" == "yes" ]] || [[ "$choice" == "y" ]] || { error "Aborting"; return 1; }
|
||||
|
||||
|
@ -324,7 +324,7 @@ $(test -n "$ssh_port_warning" && echo -e "$ssh_port_warning")
|
|||
(Note that this will only be effective *after* you run YunoHost's postinstall)
|
||||
|
||||
EOF
|
||||
read -p " Should YunoHost override the SSH configuration (y/n) ? " choice
|
||||
read -p " Should YunoHost override the SSH configuration (y/n) ? " choice < /dev/tty
|
||||
choice="$(echo $choice | tr '[A-Z]' '[a-z]')"
|
||||
if [[ "$choice" != "yes" ]] && [[ "$choice" != "y" ]]
|
||||
then
|
||||
|
|
Loading…
Add table
Reference in a new issue