fixed PATH for non-osx env

This commit is contained in:
kneutron 2021-04-10 12:53:26 -05:00 committed by GitHub
parent b685bc0d16
commit e0f7a2b7dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,12 @@
# to be run every month 17th and 27th ~9:35pm to not conflict with snapshots
PATH=/sbin:/var/root/bin:/var/root/bin/boojum:/usr/local/bin:/usr/local/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
PATH=/sbin:/var/root/bin:/var/root/bin/boojum:/root/bin:/root/bin/boojum:/usr/local/bin:/usr/local/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
log=/root/smartlog.log
mv -v -f $log $log--old
[ -e /var/root/bin ] && log=/var/root/smartlog.log # OSX env
mv -vf $log $log--old
if [ "$1" = "stage2" ]; then
myd=$(date)
@ -50,4 +52,4 @@ for i in /dev/sd?;do
done
echo "=========================================" |tee -a $log