Move prerequisites.sh to lib folder
This commit is contained in:
parent
77773a0990
commit
44398c5088
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue