Update start_server.sh
Browse files- start_server.sh +2 -0
start_server.sh
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
|
|
|
|
|
|
| 3 |
nginx -c $PWD/nginx.conf
|
| 4 |
|
| 5 |
echo "Starting VSCode Server..."
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
commit=$(cat /app/openvscode-server/product.json | awk '/commit/{print $4;exit}' FS='[""]')
|
| 4 |
+
sed -i "s/#commit#/$commit/' nginx.conf
|
| 5 |
nginx -c $PWD/nginx.conf
|
| 6 |
|
| 7 |
echo "Starting VSCode Server..."
|