diff options
author | Daniel Hansson <github@hanssonit.se> | 2019-06-28 16:42:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-28 16:42:36 +0300 |
commit | 306af07ada99f3158474067483437972b4fee2d3 (patch) | |
tree | 6c5d5ccfa7fabf8721cd86c538b43b6dacf6a5a3 /apps/webmin.sh | |
parent | 525ad626c4f3a514d9d2bdd039c377cd7e3ab835 (diff) |
use functions instead
and tidy up the deb add commands
Diffstat (limited to 'apps/webmin.sh')
-rw-r--r-- | apps/webmin.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/webmin.sh b/apps/webmin.sh index c63fa463..e45c476c 100644 --- a/apps/webmin.sh +++ b/apps/webmin.sh @@ -19,14 +19,22 @@ debug_mode root_check # Install packages for Webmin -apt install -y zip perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python +install_if_not apt-transport-https +install_if_not perl +install_if_not libnet-ssleay-perl +install_if_not openssl +install_if_not libauthen-pam-perl +install_if_not libpam-runtime +install_if_not libio-pty-perl +install_if_not apt-show-versions +install_if_not python # Install Webmin -sed -i '$a deb http://download.webmin.com/download/repository sarge contrib' /etc/apt/sources.list if curl -fsSL http://www.webmin.com/jcameron-key.asc | sudo apt-key add - then + echo "deb https://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list apt update -q4 & spinner_loading - apt install webmin -y + install_if_not webmin fi exit |