From 07f97a2d94fa27dfd2ce0f1326d9a15843965c8b Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Tue, 25 Jun 2013 13:59:20 +0300 Subject: [PATCH] Update install_yunohostv2 --- install_yunohostv2 | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/install_yunohostv2 b/install_yunohostv2 index 41e3244..68bcff3 100755 --- a/install_yunohostv2 +++ b/install_yunohostv2 @@ -152,19 +152,21 @@ then service iptables start service nscd restart service nslcd restart + echo -e "\n" - read -p "Proceed to post-installation? (y/n) " -n 1 + whiptail --title "Post-installation" --yesno "Proceed to post-installation?" 8 78 RESULT=1 while [ $RESULT -gt 0 ]; do - if [[ ! $REPLY =~ ^[Yy]$ ]]; then - exit 0 - fi - echo -e "\n" - /usr/bin/yunohost tools postinstall - let RESULT=$? - if [ $RESULT -gt 0 ]; then + if [[ $YESNO -eq 0 ]]; then echo -e "\n" - read -p "Retry? (y/n) " -n 1 + /usr/bin/yunohost tools postinstall + let RESULT=$? + if [ $RESULT -gt 0 ]; then + echo -e "\n" + whiptail --title "Post-installation" --yesno "Post-installation failed, retry ?" 8 78 + fi + else + exit 0 fi done fi