Initial Clone
This commit is contained in:
40
apps/webmin.sh
Executable file
40
apps/webmin.sh
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
# T&M Hansson IT AB © - 2019, https://www.hanssonit.se/
|
||||
|
||||
# shellcheck disable=2034,2059
|
||||
true
|
||||
# shellcheck source=lib.sh
|
||||
. <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
|
||||
|
||||
print_text_in_color "$ICyan" "Installing Webmin..."
|
||||
|
||||
# Check for errors + debug code and abort if something isn't right
|
||||
# 1 = ON
|
||||
# 0 = OFF
|
||||
DEBUG=0
|
||||
debug_mode
|
||||
|
||||
# Check if root
|
||||
root_check
|
||||
|
||||
# Install packages for Webmin
|
||||
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
|
||||
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
|
||||
install_if_not webmin
|
||||
fi
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user