From a6136c7f4afd903feeb43e9c15b7bce9232e08a0 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Wed, 8 Nov 2023 04:42:56 +0000 Subject: [PATCH] Check for webmin module config before modifying --- easyinstall.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/easyinstall.sh b/easyinstall.sh index 67b3f8a3..6421e4db 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -948,6 +948,7 @@ function installSamba() { # Installs and configures Webmin function installWebmin() { WEBMIN_PATH="/usr/share/webmin" + WEBMIN_MODULE_CONFIG="/etc/webmin/netatalk2/config" WEBMIN_MODULE_VERSION="1.0" if [ -d "$WEBMIN_PATH" ]; then @@ -968,14 +969,23 @@ function installWebmin() { curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh sudo sh setup-repos.sh rm setup-repos.sh - sudo apt-get install webmin --install-recommends + sudo apt-get install webmin --install-recommends /dev/null || true wget -O netatalk2-wbm.tgz "https://github.com/Netatalk/netatalk-webmin/releases/download/netatalk2-$WEBMIN_MODULE_VERSION/netatalk2-wbm-$WEBMIN_MODULE_VERSION.tgz"