Skip to content

Commit 849e369

Browse files
chore: cosmetic changes to work with ubuntu
1 parent d7d099c commit 849e369

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ballerine_install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,17 @@ deploy_ballerine() {
3838
local input=$1
3939
echo "checking domain if suitable $input"
4040
if [[ $input == *http://* && $input != *https://* ]]; then
41+
if [[ "$OSTYPE" == "darwin"* ]]; then
4142
cd deploy; sudo docker-compose -f docker-compose-build.yml up -d
43+
else
44+
cd deploy; sudo docker compose -f docker-compose-build.yml up -d
45+
fi
4246
elif [[ $input == *https://* && $input != *http://* ]]; then
47+
if [[ "$OSTYPE" == "darwin"* ]]; then
4348
cd deploy; sudo docker-compose -f docker-compose-build-https.yml up -d
49+
else
50+
cd deploy; sudo docker compose -f docker-compose-build-https.yml up -d
51+
fi
4452
elif [[ $input == *http://* && $input == *https://* ]]; then
4553
echo "The string contains both 'http' and 'https'."
4654
exit 1;
@@ -71,7 +79,7 @@ install_docker_ubuntu(){
7179
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
7280
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
7381
sudo apt-get update
74-
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
82+
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
7583
}
7684

7785

0 commit comments

Comments
 (0)