slack-autoupdate

Update your Slackware system automatically
Log | Files | Refs | README

commit cbc16ac2a10584baadcde181e2cc1b85ab147b5b
parent 56d51a1e8cb6650b05333b513d0e0e337679d807
Author: Slack Coder <slackcoder@server.ky>
Date:   Tue, 26 Mar 2024 06:11:02 -0500

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.

Diffstat:
Msrc/rc.slack-autoupdate | 2++
Msrc/slack-autoupdate | 4+++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git 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 @@ -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