From: Carl Baldwin Date: Mon, 31 Oct 2005 15:47:24 +0000 (-0700) Subject: Fix paths etc X-Git-Tag: release-0.4~33 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%7Bview%7D?a=commitdiff_plain;h=3a0bcbfd826e75809e778deb36747f645ea58681;p=backups%2F.git Fix paths etc --- diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh index c0feedf..2be9e0a 100755 --- a/scripts/burn-imgs.sh +++ b/scripts/burn-imgs.sh @@ -1,12 +1,11 @@ #!/bin/sh -PATH=$(dirname $0):/bin:/usr/bin +export PATH=$(dirname $0):/bin:/usr/bin:/sbin . config.sh # If the noburn file is there then don't burn. [ -f "$noburnfile" ] && exit 0 -touch $noburnfile # Discover disk images by looking for .img.md5sum files in $imagedir imgmd5=$(ls $imagedir/*.img.md5sum 2>/dev/null | head -n 1) @@ -26,6 +25,8 @@ img=${imgmd5%.md5sum} echo Image: $img +touch $noburnfile + # A little paranoia. Make sure the disk image file is there. [ -z "$img" ] && exit 1 [ -s "$img" ] || exit 1 diff --git a/scripts/cron.sh b/scripts/cron.sh index ab6b47d..d052bd9 100755 --- a/scripts/cron.sh +++ b/scripts/cron.sh @@ -1,6 +1,6 @@ #!/bin/sh -export PATH=$(dirname $0):/bin:/usr/bin +export PATH=$(dirname $0):/bin:/usr/bin:/sbin . config.sh diff --git a/scripts/eject-disk.sh b/scripts/eject-disk.sh index cca22ce..32220f1 100755 --- a/scripts/eject-disk.sh +++ b/scripts/eject-disk.sh @@ -1,6 +1,6 @@ #!/bin/sh -export PATH=$(dirname $0):/bin:/usr/bin +export PATH=$(dirname $0):/bin:/usr/bin:/sbin . config.sh diff --git a/scripts/pack-image.sh b/scripts/pack-image.sh index 5bbfc96..89c9c0e 100755 --- a/scripts/pack-image.sh +++ b/scripts/pack-image.sh @@ -2,7 +2,7 @@ scriptsdir=$(dirname $0) -export PATH=$scriptsdir:$PATH +export PATH=$scriptsdir:/bin:/usr/bin:/sbin:/usr/sbin . config.sh