From 543e6b28090f6afd3dfb732451866660d4bdf1f1 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 5 Feb 2023 23:36:05 +0100 Subject: [PATCH] base: preserve exec attr on /etc/cron.hourly/sysupdate when testing upcoming changes on a live node, it is desirable to turn off automatic updates simply by removing the x file permissions bit. this commit makes sure the x bit is set only for newly created file. --- base/voidlinux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/voidlinux.sh b/base/voidlinux.sh index 19eb610..8f766f2 100755 --- a/base/voidlinux.sh +++ b/base/voidlinux.sh @@ -13,9 +13,9 @@ if [ ! -f /etc/cron.hourly/sysupdate ]; then #!/bin/sh exec /ssd/sysupdates/update.sh EOF + chmod +x /etc/cron.hourly/sysupdate fi fi -chmod +x /etc/cron.hourly/sysupdate # install required packages and config files set -e