From: Ralph Ronnquist Date: Sat, 26 Mar 2022 12:01:33 +0000 (+1100) Subject: fix OVERLAYDIR setup X-Git-Tag: deb_0.1~5 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;ds=inline;h=9225cede2a8826492f7ea28acaf2fb8dbb7fbdad;p=rrq%2Foverlay-boot.git fix OVERLAYDIR setup --- diff --git a/overlay-boot b/overlay-boot index 75939fe..0db05aa 100755 --- a/overlay-boot +++ b/overlay-boot @@ -4,10 +4,10 @@ # is an overlay of the subhost's root and an OS root. The service # subhost is defined by a configuration file named on teh command line -OVERLAYDIR="$(realpath $(dirname $0))" +OVERLAYDIR="$(dirname $(realpath $0))" [ $(id -u) = 0 ] || exec sudo $0 $@ -. $(dirname $(realpath $0))/functions $* +. $OVERLAYDIR/functions $* CONFIG="$1" [ -r "$CONFIG" ] || die "Missing configuration $CONFIG"