From e8b4d8a24f76fdb7db285fc327db8c0209b097e6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Apr 2016 13:03:13 +0200 Subject: [SSUS] Update tmpdelete.sh -> tmpdelete --- satellit_upgrader/updater.template.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'satellit_upgrader/updater.template.sh') 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" -- cgit v1.2.3-55-g7522