aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-03-26 06:11:02 -0500
committerSlack Coder <slackcoder@server.ky>2024-03-26 06:13:55 -0500
commitcbc16ac2a10584baadcde181e2cc1b85ab147b5b (patch)
tree6a28798f1ba9290e1829454326b97e22b0561c87
parent56d51a1e8cb6650b05333b513d0e0e337679d807 (diff)
downloadslack-autoupdate-cbc16ac2a10584baadcde181e2cc1b85ab147b5b.tar.xz
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.
-rw-r--r--src/rc.slack-autoupdate2
-rw-r--r--src/slack-autoupdate4
2 files changed, 5 insertions, 1 deletions
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