1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-22 16:57:36 +01:00

fix formatting

This commit is contained in:
Kyle Spearrin 2020-06-17 09:12:01 -04:00
parent 5977803e3b
commit b105dad56e
2 changed files with 13 additions and 13 deletions

View File

@ -182,7 +182,7 @@ function Restart {
Print-Environment
}
function certRestart {
function Cert-Restart {
Docker-Compose-Down
Docker-Compose-Pull
Force-Update-Lets-Encrypt
@ -216,7 +216,7 @@ elseif ($stop) {
Docker-Compose-Down
}
elseif ($renewcert) {
certRestart
Cert-Restart
}
elseif ($updateconf) {
Docker-Compose-Down

View File

@ -148,14 +148,14 @@ function updateLetsEncrypt() {
fi
}
function forceupdateLetsEncrypt() {
if [ -d "${OUTPUT_DIR}/letsencrypt/live" ]
then
docker pull certbot/certbot
docker run -i --rm --name certbot -p 443:443 -p 80:80 \
-v $OUTPUT_DIR/letsencrypt:/etc/letsencrypt/ certbot/certbot \
renew --logs-dir /etc/letsencrypt/logs --force-renew
fi
function forceUpdateLetsEncrypt() {
if [ -d "${OUTPUT_DIR}/letsencrypt/live" ]
then
docker pull certbot/certbot
docker run -i --rm --name certbot -p 443:443 -p 80:80 \
-v $OUTPUT_DIR/letsencrypt:/etc/letsencrypt/ certbot/certbot \
renew --logs-dir /etc/letsencrypt/logs --force-renew
fi
}
function updateDatabase() {
@ -193,10 +193,10 @@ function restart() {
printEnvironment
}
function certrestart() {
function certRestart() {
dockerComposeDown
dockerComposePull
forceupdateLetsEncrypt
forceUpdateLetsEncrypt
dockerComposeUp
printEnvironment
}
@ -221,7 +221,7 @@ then
dockerComposeDown
elif [ "$1" == "renewcert" ]
then
certrestart
certRestart
elif [ "$1" == "updateconf" ]
then
dockerComposeDown