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 #!/bin/bash
### Note: Currently not complete, needs some features before useable for production ### Note: Currently not complete, needs some features before useable for production
if ! ./prerequisites.sh; then if ! ./lib/prerequisites.sh; then
echo "Prerequisites failed, exiting" echo "Prerequisites failed, exiting"
exiting exiting
fi fi

View File

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