mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
[fix] Install dialog as pre-dependency if not automode
This commit is contained in:
parent
5cb9fa475d
commit
a32f28d007
1 changed files with 9 additions and 2 deletions
|
@ -95,10 +95,17 @@ upgrade_system() {
|
||||||
}
|
}
|
||||||
|
|
||||||
installscript_dependencies() {
|
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" \
|
apt_get_wrapper -o Dpkg::Options::="--force-confold" \
|
||||||
-y --force-yes install \
|
-y --force-yes install \
|
||||||
lsb-release wget whiptail \
|
$DEPENDENCIES \
|
||||||
|| return 1
|
|| return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue