From e4fac87312612fcb9d8bcb43beca036820fee003 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Tue, 25 Jun 2013 13:49:10 +0300 Subject: [PATCH] Update install_yunohostv2 --- install_yunohostv2 | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/install_yunohostv2 b/install_yunohostv2 index 8fa88af..41e3244 100755 --- a/install_yunohostv2 +++ b/install_yunohostv2 @@ -152,8 +152,21 @@ then service iptables start service nscd restart service nslcd restart - IP=$(/sbin/ifconfig | sed '/Bcast/!d' | awk '{print $2}' | sed 's/.*\://') - whiptail --title "Yunohost Installation" --msgbox "Installation success\n Connect to http://$IP:6767 for finish installation" 8 78 + echo -e "\n" + read -p "Proceed to post-installation? (y/n) " -n 1 + 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 + echo -e "\n" + read -p "Retry? (y/n) " -n 1 + fi + done fi else