justest commited on
Commit
1aa4049
·
1 Parent(s): 44c6f36

Update start_server.sh

Browse files
Files changed (1) hide show
  1. 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