@@ -35,7 +35,7 @@ mkdir -p ${SOURCEGRAPH_CONFIG}/management
3535mkdir -p ${SOURCEGRAPH_DATA}
3636
3737# Install mkcert and generate root CA, certificate and key
38- wget https://github.com/FiloSottile/mkcert/releases/download/v${MKCERT_VERSION} /mkcert-v1.3.0 -linux-amd64 -O /usr/local/bin/mkcert
38+ wget https://github.com/FiloSottile/mkcert/releases/download/v${MKCERT_VERSION} /mkcert-v ${MKCERT_VERSION} -linux-amd64 -O /usr/local/bin/mkcert
3939chmod a+x /usr/local/bin/mkcert
4040
4141# Use the public ip address of the instance as hostnae for the self-signed cert as DigitalOcean doesn't have public DNS hostnames
9191 include nginx/sourcegraph_server.conf;
9292
9393 listen 7443 ssl http2 default_server;
94- ssl_certificate cert/ sourcegraph.crt;
95- ssl_certificate_key cert/ sourcegraph.key;
94+ ssl_certificate sourcegraph.crt;
95+ ssl_certificate_key sourcegraph.key;
9696
9797 location / {
9898 proxy_pass http://backend;
@@ -120,7 +120,7 @@ cp ${SOURCEGRAPH_CONFIG}/sourcegraph.crt ${SOURCEGRAPH_CONFIG}/management/cert.p
120120cp ${SOURCEGRAPH_CONFIG} /sourcegraph.key ${SOURCEGRAPH_CONFIG} /management/key.pem
121121
122122# Zip the CA Root key and certificate for easy downloading
123- zip -j ${USER_HOME} /sourcegraph-root-ca.zip ${SOURCEGRAPH_CONFIG} /root *
123+ zip -j ${USER_HOME} /sourcegraph-root-ca.zip ${SOURCEGRAPH_CONFIG} /sourcegraph.crt ${SOURCEGRAPH_CONFIG} /sourcegraph.key
124124
125125cat > ${USER_HOME} /sourcegraph-start << EOL
126126#!/usr/bin/env bash
@@ -160,7 +160,7 @@ docker container run \\
160160EOL
161161
162162cat > ${USER_HOME} /sourcegraph-stop << EOL
163- !/usr/bin/env bash
163+ # !/usr/bin/env bash
164164
165165echo "[info]: Stopping Sourcegraph"
166166docker container stop sourcegraph > /dev/null 2>&1 docker container rm sourcegraph
0 commit comments