Replace should_i_rebuild.sh by a new script that corresponds to what we do in the current cron job nowadays

This commit is contained in:
Alexandre Aubin
2020-03-20 18:37:29 +01:00
parent abddc03b63
commit 63d5700e52
2 changed files with 10 additions and 33 deletions

10
rebuild.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
workdir=$(dirname "$0")
log=$workdir/app_list_auto_update.log
cd $workdir
date >> $log
git pull >/dev/null
python ./list_builder.py &>> $log || sendxmpppy "[listbuilder] Rebuilding the application list failed miserably"