From: Ralph Ronnquist Date: Sat, 1 Jan 2022 12:28:23 +0000 (+1100) Subject: added some (half good) install magic X-Git-Tag: 0.1~28 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=4c54c9f7067030a9860fa5a3671a4ef6ce1468a2;p=rrq%2Fhourglass.git added some (half good) install magic --- diff --git a/run-manager.sh b/run-manager.sh index f474356..a7b3c32 100755 --- a/run-manager.sh +++ b/run-manager.sh @@ -1,3 +1,14 @@ #!/bin/bash -( nohup newlisp -http -d 1070 -w manager/www & ) +function die() { + echo "$*" >&2 + exit 1 +} + +SERVICE=manager/hourglass-web + +[ -f "$SERVICE" ] || die "** missing $SERVICE ** aborting" + +[ -d www ] || $SERVICE install || die "Cannot install www service" + +( nohup newlisp -http -d 1070 -w www & )