25K4 (#7)
This commit is contained in:
7
cert/clientRenew
Executable file
7
cert/clientRenew
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
T=$SDIR/../step
|
||||
|
||||
STEP=0
|
||||
source $T/ensureRootUser
|
||||
source $T/renewCertbot
|
||||
3
cert/clientSetup
Executable file
3
cert/clientSetup
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash -e
|
||||
# https://habr.com/ru/articles/735712/
|
||||
brew install certbot
|
||||
23
cert/vpsRenew
Executable file
23
cert/vpsRenew
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
T=$SDIR/../step
|
||||
|
||||
ACME_FILE=$1
|
||||
ACME_VALUE=$2
|
||||
|
||||
if [ -z "$ACME_FILE" ] || [ -z "$ACME_VALUE" ]; then
|
||||
echo "Usage: $0 ACME_FILE ACME_VALUE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ACME_DIR="/var/www/html/.well-known/acme-challenge"
|
||||
|
||||
STEP=0
|
||||
source $T/ensureRootUser
|
||||
source $T/copyNginxACMEConfig
|
||||
source $T/restartNginx
|
||||
source $T/createACMEChallenge
|
||||
source $T/waitForReturnKey
|
||||
source $T/deleteACMEChallenge
|
||||
source $T/copyNginxProdConfig
|
||||
source $T/restartNginx
|
||||
Reference in New Issue
Block a user