mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Update install_yunohost
This commit is contained in:
parent
0bcb46afce
commit
e47ad3de77
1 changed files with 11 additions and 5 deletions
|
@ -34,12 +34,18 @@ fi
|
||||||
|
|
||||||
echo "======== Check domain ========"
|
echo "======== Check domain ========"
|
||||||
whiptail --title "Yunohost Domain" --yesno "Your domain is $DOMAIN\nDo you want to change this?" 8 78
|
whiptail --title "Yunohost Domain" --yesno "Your domain is $DOMAIN\nDo you want to change this?" 8 78
|
||||||
if [ $? = 255 ];
|
YESNO=$?
|
||||||
|
if [ $YESNO = 255 ];
|
||||||
then
|
then
|
||||||
exit 1
|
exit 1
|
||||||
elif [ $? = 1 ];
|
elif [ $YESNO = 0 ];
|
||||||
then
|
then
|
||||||
DOMAIN=$(whiptail --inputbox "Enter your new domain please" 8 78 --title "Yunohost Domain" 3>&1 1>&2 2>&3)
|
DOMAIN=$(whiptail --inputbox "Enter your new domain please" 8 78 --title "Yunohost Domain" 3>&1 1>&2 2>&3)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $DOMAIN = '' ];
|
||||||
|
then
|
||||||
|
DOMAIN=$(hostname -d)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
whiptail --title "Yunohost Installation" --yesno "Caution : your config file for postfix,dovecot,mysql,apache,ejabberd,radicale will be overwirte/nDo you want continue install Yunhost?" 8 78
|
whiptail --title "Yunohost Installation" --yesno "Caution : your config file for postfix,dovecot,mysql,apache,ejabberd,radicale will be overwirte/nDo you want continue install Yunhost?" 8 78
|
||||||
|
|
Loading…
Add table
Reference in a new issue