mirror of
https://github.com/bitwarden/server.git
synced 2024-12-22 16:57:36 +01:00
fix formatting
This commit is contained in:
parent
5977803e3b
commit
b105dad56e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user