Install cron task that rebuilds images when needed.

This commit is contained in:
Stephane Gourichon
2024-03-24 17:11:50 +01:00
parent 371d138bb8
commit 602685f561

View File

@@ -0,0 +1,13 @@
#!/bin/bash
cd -P "$(dirname "$(readlink -f "$0")" )"
if [[ "$PWD" != "$(printf %q "$PWD" )" ]]
then
echo >&2 "WARNING: path seems unsafe: $PWD"
fi
{
crontab -l | grep -v containers_check_update_rebuild_switch.sh
echo "0 0 * * * $PWD/run_and_output_only_on_error.sh $PWD/containers_check_update_rebuild_switch.sh"
} | crontab -