From 2f4b45f4652273d79b563717cb7ffd58f32753b7 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Tue, 29 Nov 2016 21:27:17 -0800 Subject: [PATCH] Fix permissions on cronwrapper before installing it into cron.daily --- extras/installer.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extras/installer.sh b/extras/installer.sh index e620100..152e682 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -260,8 +260,10 @@ configure_cron() { echo echo -n "Installing daily cron job... " if [ $EUID -ne 0 ]; then + sudo chown root:root "${FULL_PATH}/extras/cronwrapper" sudo ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER" else + chown root:root "${FULL_PATH}/extras/cronwrapper" ln -sf "${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER" fi echo "done"