Update start_server.sh
Browse files- start_server.sh +5 -0
start_server.sh
CHANGED
|
@@ -2,6 +2,11 @@
|
|
| 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 |
set +e
|
|
|
|
| 2 |
|
| 3 |
commit=$(cat /app/openvscode-server/product.json | awk '/commit/{print $4;exit}' FS='[""]')
|
| 4 |
sed -i "s/#commit#/$commit/" nginx.conf
|
| 5 |
+
NGX_NAME="${NGX_NAME:-admin}"
|
| 6 |
+
NGX_PASS="${NGX_PASS:-admin}"
|
| 7 |
+
CRYPTPASS=`openssl passwd -crypt ${NGX_PASS}`
|
| 8 |
+
|
| 9 |
+
echo "${NGX_NAME}:${CRYPTPASS}" >> ngpasswd
|
| 10 |
nginx -c $PWD/nginx.conf
|
| 11 |
|
| 12 |
set +e
|