#!/bin/bash
#
# openmamba-autobuild-autoport daily cron script
#
#. /etc/sysconfig/openmamba-central
. /etc/autodist/autoport

[ "$AUTOPORT_ENABLE" = "1" -o "$AUTOPORT_ENABLE" = "true" ] || exit 0

for i in "${!AUTOPORT_ARCH[@]}"; do
  echo "Running autoport-launcher ${i}"
  systemd-run -u autoport-launcher-${i} /usr/bin/autoport-launcher ${i}
done
