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

Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
2024-01-21 09:17:52 +01:00
parent 8f618de796
commit d4a123c19a
2 changed files with 9 additions and 5 deletions

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