We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b821d commit fa1ff60Copy full SHA for fa1ff60
scripts/cert.sh
@@ -7,7 +7,17 @@ eval $(egrep '^CERT_PATH' .env | xargs)
7
echo "Domain: ${HOST}"
8
echo "Cert Path: ${CERT_PATH}"
9
10
-echo "Creating Cert"
+if [ -f certs/cert.crt ] || [ -f certs/cert.key ] || [ -f certs/cert.pem ]; then
11
+ echo -e "cert already exists in certs directory\nDo you want to overwrite the files? [y]es/[n]o"
12
+ read -r ANSWER
13
+ echo
14
+ if [[ "$ANSWER" =~ ^[Yy](es)?$ ]] ; then
15
+ echo "Creating Cert"
16
+ else
17
+ exit 1
18
+ fi
19
+fi
20
+
21
./scripts/requests.sh
22
23
openssl genrsa -out $CERT_PATH/cert.key
0 commit comments