Add uberspace crontab handling

This commit is contained in:
2025-02-16 14:05:55 +01:00
parent b50f5cc2a4
commit 9d6f2d6db9
5 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
echo "# Generated from ~/.config/cron.d"
echo "# Use crontab-dir-update to regenerate"
echo
echo "PATH=$HOME/.local/bin:$HOME/bin:\$PATH"
echo
find $HOME/.config/cron.d -mindepth 1 -maxdepth 1 -type f | sort | xargs cat

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ "$(crontab-dir-generate-crontab)" == "$(crontab -l)" ]]; then
echo "crontab is up to date"
exit 0
else
echo "crontab needs update"
exit 1
fi

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
crontab-dir-generate-crontab | crontab -