From 205fd6425c7d34b2a67a6d81fc825612a488deab Mon Sep 17 00:00:00 2001 From: Philipp-Alexander Blum Date: Fri, 6 Dec 2024 11:40:52 +0100 Subject: [PATCH] Check if docker-compose is present or not in run script --- run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index a76b9a4..6c9d340 100644 --- a/run.sh +++ b/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" \ No newline at end of file