Skip to content

Commit e5210c7

Browse files
authored
whiptail is needed before everything else
Signed-off-by: Daniel Hansson <[email protected]>
1 parent 0e87ec8 commit e5210c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nextcloud_install_production.sh

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ else
2828
apt-get install curl -y
2929
fi
3030

31+
# Install whiptail if not existing
32+
if [ "$(dpkg-query -W -f='${Status}' "whiptail" 2>/dev/null | grep -c "ok installed")" = "1" ]
33+
then
34+
echo "whiptail OK"
35+
else
36+
apt-get install whiptail -y
37+
fi
38+
3139
true
3240
SCRIPT_NAME="Nextcloud Install Script"
3341
SCRIPT_EXPLAINER="This script is installing all requirements that are needed for Nextcloud to run.

0 commit comments

Comments
 (0)