From 5d9d3686fa080574e583bb4bafc1dae757f4f0e1 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 20 Mar 2020 18:37:29 +0100 Subject: [PATCH] Replace should_i_rebuild.sh by a new script that corresponds to what we do in the current cron job nowadays --- rebuild.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rebuild.sh diff --git a/rebuild.sh b/rebuild.sh new file mode 100644 index 0000000..dfe9bec --- /dev/null +++ b/rebuild.sh @@ -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"