summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader
diff options
context:
space:
mode:
authorSimon Rettberg2016-04-18 13:03:13 +0200
committerSimon Rettberg2016-04-18 13:03:13 +0200
commite8b4d8a24f76fdb7db285fc327db8c0209b097e6 (patch)
treeca913e048f307befee699aea3614eab62b7dce9d /satellit_upgrader
parent[SSPS] cron.daily: tmpdelete.sh -> tmpdelete (run-parts ignores files with ex... (diff)
downloadsetup-scripts-e8b4d8a24f76fdb7db285fc327db8c0209b097e6.tar.gz
setup-scripts-e8b4d8a24f76fdb7db285fc327db8c0209b097e6.tar.xz
setup-scripts-e8b4d8a24f76fdb7db285fc327db8c0209b097e6.zip
[SSUS] Update tmpdelete.sh -> tmpdelete
Diffstat (limited to 'satellit_upgrader')
-rw-r--r--satellit_upgrader/updater.template.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index 3366c22..2557744 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -113,6 +113,12 @@ else
perror "This update seems to be older than the server version you're currently running"
fi
+# **************** Fix tmpdelete cronjob *******************
+if [ -f "/etc/cron.daily/tmpdelete.sh" ]; then
+ [ -f "/etc/cron.daily/tmpdelete" ] || mv "/etc/cron.daily/tmpdelete.sh" "/etc/cron.daily/tmpdelete"
+ rm -f -- "/etc/cron.daily/tmpdelete.sh"
+fi
+
# ************** Extract payload ***************************
declare -rg TMPDIR=$(mktemp -d)
[ -z "$TMPDIR" ] && perror "Could not create temporary directory for installer"