Skip to content

Commit

Permalink
Added debug messages when configuring the crontab.
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetovd committed Dec 16, 2024
1 parent fa3267c commit 2ded2f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,13 @@ if [ -z "$RELEEM_CRON_ENABLE" ]; then
fi
elif [ "$RELEEM_CRON_ENABLE" -gt 0 ]; then
releem_set_cron
if [ `$sudo_cmd crontab -l 2>/dev/null | grep -c "$WORKDIR/mysqlconfigurer.sh" || true` -eq 0 ]; then
printf "\033[31m\nConfiguration of crontab executed with an error. Automatic updates are disabled.\033[0m\n"
else
printf "\033[32m\nConfiguration of crontab is done. Automatic updates are enabled.\033[0m\n"
fi
else
printf "\033[31m\nConfiguration of crontab failed. Automatic updates are disabled.\033[0m\n"
fi

set +e
Expand Down

0 comments on commit 2ded2f6

Please sign in to comment.