From a32f28d007bce3c92382ab35ba558e17395d277f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sun, 27 Mar 2016 15:45:07 +0200 Subject: [PATCH] [fix] Install dialog as pre-dependency if not automode --- install_yunohostv2 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install_yunohostv2 b/install_yunohostv2 index 86ed4ba..8213849 100755 --- a/install_yunohostv2 +++ b/install_yunohostv2 @@ -95,10 +95,17 @@ upgrade_system() { } installscript_dependencies() { - # install dependencies of the install script itself + # dependencies of the install script itself + local DEPENDENCIES="lsb-release wget whiptail" + + if [[ "$AUTOMODE" == "0" ]] ; + then + DEPENDENCIES+=" dialog" + fi + apt_get_wrapper -o Dpkg::Options::="--force-confold" \ -y --force-yes install \ - lsb-release wget whiptail \ + $DEPENDENCIES \ || return 1 }