Hello
-
Cron task is really confusing. I was sure that
0 0 * * *
it’s 12PM and0 12 * * *
it’s 12 AM as we use 24h format time in our country. It would be great if you change the time to avoid such collision -
Bash scripts
Also in bash scripts stop/start containers the only accepted from of shebang is#!/usr/bin/env bash
which also a little bit unexpected. Because in other tasks you accept just#!/bin/bash
You should accept both form, imho
Also as for me the right variant for both scripts is
#!/bin/bash
docker stop/start myapp && echo "..."
As we should print the text only in case the docker command were successful