Move prerequisites.sh to lib folder

This commit is contained in:
Martin Lablans 2022-01-10 14:45:52 +01:00
parent 77773a0990
commit 44398c5088
3 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
### Note: Currently not complete, needs some features before useable for production
if ! ./prerequisites.sh; then
if ! ./lib/prerequisites.sh; then
echo "Prerequisites failed, exiting"
exiting
fi

View File

@ -7,6 +7,7 @@ log() {
log "INFO" "Checking for updates of $service"
# check prerequisites
##TODO: Move to lib/prereq.sh
prerequisites="git docker docker-compose"
for prerequisite in $prerequisites; do
$prerequisite --version 2>&1