From a80fcb5d4cffc9018f1119f1eb45a10161c1f0a8 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Fri, 21 Jul 2023 13:25:35 +0200 Subject: [PATCH] Default config --- config.yml | 2 -- scripts/preinstall.sh | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config.yml b/config.yml index e783ca9..69c45e5 100644 --- a/config.yml +++ b/config.yml @@ -23,7 +23,5 @@ checks: enabled: true services: - sshd - - test - - docker version: enabled: true diff --git a/scripts/preinstall.sh b/scripts/preinstall.sh index da9128c..8faaedf 100644 --- a/scripts/preinstall.sh +++ b/scripts/preinstall.sh @@ -1,4 +1,9 @@ #/bin/sh if ! id -u http-server-status > /dev/null 2>&1; then adduser --system http-server-status +fi +if [ -f "/etc/http-server-status/config.yml" ]; then + echo "Config exists" +else + cp /etc/http-server-status/config.yml.sample /etc/http-server-status/config.yml fi \ No newline at end of file