fix: ensure the dokku-retire timer is properly installed

Closes #3615
This commit is contained in:
Jose Diaz-Gonzalez committed 2019-07-17 20:48:57 -04:00
1 parent 22ffa41d31
commit 5a52286309
2 files changed
+24

No files matched your search

+6
View File
@@ -38,9 +38,15 @@ Description=Run dokku-retire.service every 5 minutes
[Timer]
OnCalendar=*:0/5
Persistent=true
[Install]
WantedBy=timers.target
EOF
if command -v systemctl &>/dev/null; then
systemctl --quiet reenable dokku-retire
systemctl --quiet enable dokku-retire.timer
systemctl --quiet start dokku-retire.timer
fi
else
cat <<EOF >/etc/cron.d/dokku-retire