Update start_server.sh
Browse files- start_server.sh +6 -0
start_server.sh
CHANGED
@@ -4,6 +4,12 @@ commit=$(cat /app/openvscode-server/product.json | awk '/commit/{print $4;exit}'
|
|
4 |
sed -i "s/#commit#/$commit/" nginx.conf
|
5 |
nginx -c $PWD/nginx.conf
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
echo "Starting VSCode Server..."
|
8 |
|
9 |
exec /app/openvscode-server/bin/openvscode-server --host 0.0.0.0 --port 5050 --without-connection-token \"${@}\" --
|
|
|
4 |
sed -i "s/#commit#/$commit/" nginx.conf
|
5 |
nginx -c $PWD/nginx.conf
|
6 |
|
7 |
+
set +e
|
8 |
+
if [[ -e "$REPOSITORY" ]]; then
|
9 |
+
git clone $REPOSITORY
|
10 |
+
fi
|
11 |
+
set -e
|
12 |
+
|
13 |
echo "Starting VSCode Server..."
|
14 |
|
15 |
exec /app/openvscode-server/bin/openvscode-server --host 0.0.0.0 --port 5050 --without-connection-token \"${@}\" --
|