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 }