* MOD: cleanup
Test stage / check and test (push) Failing after 6s

Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
2024-01-20 14:12:36 +01:00
parent e79cd2f979
commit 212b30ee8b
+3 -1
View File
@@ -1,5 +1,6 @@
#!/bin/bash
# shellcheck source=/dev/null
. /app/includes.sh
# restore
@@ -14,7 +15,8 @@ if [[ "$1" == "restore" ]]; then
fi
function configure_cron() {
local FIND_CRON_COUNT="$(grep -c 'backup.sh' "${CRON_CONFIG_FILE}" 2> /dev/null)"
local FIND_CRON_COUNT
FIND_CRON_COUNT="$(grep -c 'backup.sh' "${CRON_CONFIG_FILE}" 2> /dev/null)"
if [[ "${FIND_CRON_COUNT}" -eq 0 ]]; then
echo "${CRON} bash /app/backup.sh" >> "${CRON_CONFIG_FILE}"
fi