2013-01-19 17:46:30 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# autodist autoupdate hourly cron script
|
2022-10-02 13:02:40 +02:00
|
|
|
# (c) 2008-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
2013-01-19 17:46:30 +01:00
|
|
|
#
|
|
|
|
. /etc/autodist/config
|
|
|
|
. /etc/sysconfig/autoport
|
|
|
|
|
2013-11-09 14:33:39 +01:00
|
|
|
# FIXME: parametrize automaint call
|
2014-06-07 19:13:48 +02:00
|
|
|
if [ ! "$AUTOPORT_UPDATE_NO_AUTOMAINT" ]; then
|
2023-08-16 18:38:48 +02:00
|
|
|
automaint -s devel-autodist -d base -p devel-makedist
|
2014-06-07 19:13:48 +02:00
|
|
|
fi
|
2013-11-09 14:33:39 +01:00
|
|
|
|
2013-01-19 17:46:30 +01:00
|
|
|
for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
|
2022-10-02 13:02:40 +02:00
|
|
|
echo "Running autodist-launcher ${i}"
|
|
|
|
systemd-run -u autodist-launcher-${i} /usr/bin/autodist-launcher ${i}
|
2013-01-19 17:46:30 +01:00
|
|
|
done
|