Skip to content

Commit ecaa5e2

Browse files
author
vac (Brendan)
authored
improve install.sh (#4)
1 parent 03bf267 commit ecaa5e2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

install.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

@@ -9,12 +9,19 @@ Before you submit any github issue, please do the following check:
99
* make sure the docker daemon is running
1010
* make sure you use docker compose v2: recommend 2.x.x, got $(docker compose version --short 2>/dev/null || echo not install)
1111
* check your internet connection if timeout happens
12+
* check for potential port conflicts if you have local services listening on all interfaces (e.g. another redis container listening on *:6379)
1213
===========================
1314
EOF
1415
}
1516

1617
trap notes ERR
1718

19+
if ! docker info >/dev/null 2>&1; then
20+
echo "Docker daemon or Docker Desktop is not running... please check" 2>&1
21+
false
22+
exit 1
23+
fi
24+
1825
DOWNLOAD_URL='https://github.com/apitable/apitable.github.io/releases/latest/download/docker-compose.tar.gz'
1926

2027
mkdir -p apitable

0 commit comments

Comments
 (0)