mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
12 lines
454 B
Bash
12 lines
454 B
Bash
#!/usr/bin/env bash
|
|
|
|
workdir=$(realpath $(dirname "$0"))
|
|
log=$workdir/app_list_auto_update.log
|
|
|
|
cd $workdir
|
|
date >> $log
|
|
git pull &>/dev/null
|
|
cat cron | sed "s@__BASEDIR__@$workdir@g" > /etc/cron.d/app_list
|
|
|
|
./tools/app_caches.py -j40 &>> $log || sendxmpppy "[listbuilder] Downloading the apps caches failed miserably"
|
|
./tools/list_builder.py -j10 --no-update-cache &>> $log || sendxmpppy "[listbuilder] Rebuilding the application list failed miserably"
|