From 32ae7e2b38c26d189168ba4fdb607b26148d5d01 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Fri, 3 Jul 2026 10:35:44 +0100 Subject: [PATCH] checks for some dependencies in install.sh --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index 200ee36..94a02f3 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,15 @@ #!/bin/sh +DEPENDENCIES="podman podman-compose yq envsubst bash" +for dep in ${DEPENDENCIES} +do + if [ -z "$(which ${dep} 2>/dev/null)" ] + then + echo "Cannot install: missing required dependency ${dep}. Install ${dep}, then try again." + exit 1 + fi +done + set -e doas adduser -h /home/joeac.net joeac.net