mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
13 lines
395 B
Bash
13 lines
395 B
Bash
#!/bin/bash
|
|
|
|
workdir=$(realpath $(dirname "$0"))
|
|
log=$workdir/app_sources_auto_update.log
|
|
|
|
cd $workdir
|
|
date >> $log
|
|
git pull &>/dev/null
|
|
cat cron | sed "s@__BASEDIR__@$workdir@g" > /etc/cron.d/app_list
|
|
|
|
python3 tools/autoupdate_app_sources/autoupdate_app_sources.py \
|
|
--edit --commit --pr --paste -j1 \
|
|
&> $log || sendxmpppy "[appsourcesautoupdate] App sources auto-update failed miserably"
|