mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
fix formatting
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user