From 4c54c9f7067030a9860fa5a3671a4ef6ce1468a2 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sat, 1 Jan 2022 23:28:23 +1100 Subject: [PATCH] added some (half good) install magic --- run-manager.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 & ) -- 2.39.2