Add cron.sh
This commit is contained in:
parent
1325797c8c
commit
381c2a5664
1 changed files with 11 additions and 0 deletions
11
cron.sh
Executable file
11
cron.sh
Executable 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"
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue