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.
pull/3/head
alex 2 years ago
parent 374bbe4fbb
commit 543e6b2809
Signed by: x1ddos
GPG Key ID: 540189B756BF5B12

@ -13,9 +13,9 @@ if [ ! -f /etc/cron.hourly/sysupdate ]; then
#!/bin/sh #!/bin/sh
exec /ssd/sysupdates/update.sh exec /ssd/sysupdates/update.sh
EOF EOF
chmod +x /etc/cron.hourly/sysupdate
fi fi
fi fi
chmod +x /etc/cron.hourly/sysupdate
# install required packages and config files # install required packages and config files
set -e set -e

Loading…
Cancel
Save