Check if docker-compose is present or not in run script
This commit is contained in:
parent
ac5a3cce28
commit
205fd6425c
7
run.sh
7
run.sh
@ -44,6 +44,11 @@ find $DESTINATION -type f -exec chmod 644 {} \;
|
||||
find $DESTINATION -type d -exec chmod 755 {} \;
|
||||
|
||||
# Run Odoo
|
||||
docker-compose -f $DESTINATION/docker-compose.yml up -d
|
||||
if ! is_present="$(type -p "docker-compose")" || [[ -z $is_present ]]; then
|
||||
docker compose -f $DESTINATION/docker-compose.yml up -d
|
||||
else
|
||||
docker-compose -f $DESTINATION/docker-compose.yml up -d
|
||||
fi
|
||||
|
||||
|
||||
echo "Odoo started at http://localhost:$PORT | Master Password: minhng.info | Live chat port: $CHAT"
|
||||
Loading…
Reference in New Issue
Block a user