summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader/updater.template.sh
diff options
context:
space:
mode:
authorSimon Rettberg2024-10-08 12:14:44 +0200
committerSimon Rettberg2024-10-08 12:14:44 +0200
commitb207cd6b7f8982566054bb173a0f201d1e94765f (patch)
tree425b5ddf213e42d5b9bf7ed04020f8d402024449 /satellit_upgrader/updater.template.sh
parent[SS?S] Make slx-cert cronjob a systemd timer so we keep logs (diff)
downloadsetup-scripts-b207cd6b7f8982566054bb173a0f201d1e94765f.tar.gz
setup-scripts-b207cd6b7f8982566054bb173a0f201d1e94765f.tar.xz
setup-scripts-b207cd6b7f8982566054bb173a0f201d1e94765f.zip
[SS?S] Make slxadmin cron script triggered by systemd timer as well
Diffstat (limited to 'satellit_upgrader/updater.template.sh')
-rw-r--r--satellit_upgrader/updater.template.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index abd132a..aa7bf1b 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -523,8 +523,11 @@ if [ -n "$TGZ_SLXADMIN" ]; then
# New scripts supplied
diffcp "slxadmin" "/opt/openslx/slxadmin-cronscript"
diffcp "slxadmin" "/opt/openslx/slxadmin-bootscript"
- # New crontab supplied
- diffcp "slxadmin" "/etc/cron.d/slx-admin"
+ # New crontab supplied - now as systemd timer
+ rm -f -- "/etc/cron.d/slx-admin"
+ diffcp "slxadmin" "/etc/systemd/system/slx-cron.service"
+ diffcp "slxadmin" "/etc/systemd/system/slx-cron.timer"
+ diffcp "slxadmin" "/etc/systemd/system/timers.target.wants/slx-cron.timer"
# Service
diffcp "slxadmin" "/etc/systemd/system/slxadmin-boot.service"
ln -nfs "../slxadmin-boot.service" "/etc/systemd/system/multi-user.target.wants/slxadmin-boot.service"