Add cron.sh

This commit is contained in:
Steffen Lange 2022-04-30 15:47:15 +02:00
parent 1325797c8c
commit 381c2a5664

11
cron.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
SCRIPTDIR="`dirname "$(readlink -f "$0")"`"
SITEDIR="/var/www/virtual/steffen/patchbot.de"
"$SCRIPTDIR/PatchCollector.php" || exit 1
"$SCRIPTDIR/PatchViewer.php" > "$SITEDIR/index.html"
"$SCRIPTDIR/PatchFeeder.php" > "$SITEDIR/rss.xml"
[ -e "$SCRIPTDIR/TwitterKey.php" ] && "$SCRIPTDIR/PatchTwitter.php"
[ -e "$SCRIPTDIR/MastodonKey.php" ] && "$SCRIPTDIR/PatchMastodon.php"