diff --git a/scripts/run.ps1 b/scripts/run.ps1 index 57e814d68b..b1b0216f32 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -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 diff --git a/scripts/run.sh b/scripts/run.sh index e4127ac2a9..16856a8aeb 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -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