diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-03 10:35:44 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-03 10:35:44 +0100 |
| commit | 32ae7e2b38c26d189168ba4fdb607b26148d5d01 (patch) | |
| tree | 0df5d29854ce8a161b41c800ea96ba85e0b88cff /install.sh | |
| parent | 4e62da3d52b0fd68483476c3f188ce47b3bb6dea (diff) | |
checks for some dependencies in install.sh
Diffstat (limited to 'install.sh')
| -rw-r--r-- | install.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |
