From bbdb781bca102e7e70dfe139b8f011d1f3ebe651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Sun, 1 Mar 2026 11:59:46 +0100 Subject: [PATCH] fix: cron added along with procps to necessary packages --- disk-monitor.sh | 2 +- install.sh | 7 +++++++ utils.sh | 4 +--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/disk-monitor.sh b/disk-monitor.sh index 1c6f493..8e55b43 100644 --- a/disk-monitor.sh +++ b/disk-monitor.sh @@ -7,7 +7,7 @@ PROJECT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) readonly PROJECT_DIR 2>/dev/null -source $PROJECT_DIR/utils.sh +source $PROJECT_DIR/utils.sh 2>/dev/null source $ENV_FILE INSTALLED=$1 diff --git a/install.sh b/install.sh index 56be8fe..c9077a8 100644 --- a/install.sh +++ b/install.sh @@ -13,6 +13,13 @@ ENV_LIST=( "GITHUB_AUTH_SECRET" ) +readonly REQ=( + "curl" + "docker" + "crontab" + "procps" +) + function check_root() { if [[ $EUID -ne 0 ]]; then log_error "The script needs to run as root." diff --git a/utils.sh b/utils.sh index b0d9bae..f27b59a 100644 --- a/utils.sh +++ b/utils.sh @@ -7,9 +7,7 @@ PROJECT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) readonly PROJECT_DIR 2>/dev/null -readonly PROJECT_NAME="serverconfig" - -readonly REQ=("curl" "docker") +readonly PROJECT_NAME="serverconfig" 2>/dev/null readonly ENV_FILE="${PROJECT_DIR}/.env"