Skip to content

Commit

Permalink
Add entrypoint command to run cron (in foreground)
Browse files Browse the repository at this point in the history
  • Loading branch information
akkornel committed Nov 29, 2023
1 parent 8ae31a5 commit bd0ddbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions root/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function usage {
echo "usage: $0 COMMAND ARGS"
echo
echo "The following commands are available:"
echo "- cron: Run the cron daemon (will not exit)"
echo "- mysql: Run the MariaDB client"
echo "- restic: Run the Restic client"
}
Expand All @@ -19,6 +20,9 @@ if [ "${1:-x}" = "x" ]; then
fi

case $1 in
cron)
exec crond -f
;;
mysql)
exec mariadb "${@:2}"
;;
Expand Down

0 comments on commit bd0ddbb

Please sign in to comment.