From 73f438ced0c132548ac92d6f8792c1f8d081c303 Mon Sep 17 00:00:00 2001 From: tmantti Date: Mon, 13 Feb 2023 03:46:33 +0200 Subject: [PATCH] Install lighttpd --- install-or-update-interface.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-or-update-interface.sh b/install-or-update-interface.sh index f02f677..9ba6a9a 100755 --- a/install-or-update-interface.sh +++ b/install-or-update-interface.sh @@ -3,6 +3,10 @@ set -e trap 'echo "------------"; echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR +if ! command -v lighttpd &>/dev/null; then + apt-get update || true; apt-get install -y --no-install-recommends --no-install-suggests lighttpd || true +fi + function getGIT() { # getGIT $REPO $BRANCH $TARGET-DIR if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]]; then