From cbc16ac2a10584baadcde181e2cc1b85ab147b5b Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Tue, 26 Mar 2024 06:11:02 -0500 Subject: Fix kernel update Include the necessary local command paths which are excluded from sysvinit. Also check for the information file before moving it to avoid noisy log output. --- src/rc.slack-autoupdate | 2 ++ src/slack-autoupdate | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rc.slack-autoupdate b/src/rc.slack-autoupdate index 2f17dc9..9563388 100644 --- a/src/rc.slack-autoupdate +++ b/src/rc.slack-autoupdate @@ -7,6 +7,8 @@ # will run if found. We recommend placing this under /usr/local/sbin. # +export PATH=$PATH:/usr/local/bin:/usr/local/sbin + # Where packages are stored pending installation. You can use sub-directories # to order and group packages. UPDATE_DIR="/var/spool/slack-autoupdate" diff --git a/src/slack-autoupdate b/src/slack-autoupdate index a246210..86ca9e9 100644 --- a/src/slack-autoupdate +++ b/src/slack-autoupdate @@ -206,7 +206,9 @@ fi if [ -f "$UPDATE_ERROR" ]; then mv "$UPDATE_ERROR" "$PACKAGE_DIR" - mv "$UPDATE_INFO" "$PACKAGE_DIR" + if [ -f "$UPDATE_INFO" ]; then + mv "$UPDATE_INFO" "$PACKAGE_DIR" + fi exit 1 fi -- cgit v1.2.3