#!/usr/bin/env bash set -e # Alte Crons löschen hermes cron remove traum || true hermes cron remove chef-gutachter || true hermes cron remove release-radar || true hermes cron remove idle-radar || true hermes cron remove selbst-inventur || true hermes cron remove karten-gutachter || true hermes cron remove pruefstand || true hermes cron remove trend-radar || true # Neue Crons registrieren mit --no-agent und pipe in notify.sh hermes cron create --name traum "15 3 * * *" "bash /home/hitonabi/mission-control-v2/deploy/dreaming-feed.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Traum" --no-agent hermes cron create --name chef-gutachter "30 4 * * *" "bash /home/hitonabi/mission-control-v2/deploy/chef-gutachter-feed.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Chef-Gutachter" --no-agent hermes cron create --name release-radar "15 5 * * 1" "bash /home/hitonabi/mission-control-v2/deploy/hermes-release-radar-feed.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Release-Radar" --no-agent hermes cron create --name idle-radar "45 3 * * *" "bash /home/hitonabi/mission-control-v2/deploy/idle-radar-feed.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Idle-Radar" --no-agent hermes cron create --name selbst-inventur "35 3 * * *" "bash /home/hitonabi/mission-control-v2/deploy/selbst-inventur.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Selbst-Inventur" --no-agent hermes cron create --name karten-gutachter "0 4 * * *" "bash /home/hitonabi/mission-control-v2/deploy/karten-gutachter.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Karten-Gutachter" --no-agent hermes cron create --name pruefstand "0 2 * * *" "bash /home/hitonabi/mission-control-v2/deploy/pruefstand/pruefstand.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Prüfstand" --no-agent hermes cron create --name trend-radar "15 5 * * 6" "bash /home/hitonabi/mission-control-v2/deploy/trend-radar-feed.sh | bash /home/hitonabi/mission-control-v2/deploy/notify.sh -s Trend-Radar" --no-agent echo "Crons erfolgreich gefixt!"