Skip to content

Commit 4ffadc4

Browse files
Update deploy.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 13223bd commit 4ffadc4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deploy.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,12 @@ ensure_packages() {
155155
fi
156156

157157
# Determine Docker distribution
158-
if [[ "$OS_ID" == "debian" || "$OS_LIKE" == *"debian"* ]]; then
158+
if [[ "$OS_ID" == "ubuntu" || "$OS_LIKE" == *"ubuntu"* ]]; then
159+
DOCKER_DIST="ubuntu"
160+
elif [[ "$OS_ID" == "debian" || "$OS_LIKE" == *"debian"* ]]; then
159161
DOCKER_DIST="debian"
160162
else
161-
DOCKER_DIST="ubuntu"
163+
DOCKER_DIST="$OS_ID"
162164
fi
163165

164166
apt-get update -y

0 commit comments

Comments
 (0)