Files
vps/cert/vpsRenew
Михаил Капелько 32101302c3 wait for key
2025-12-06 07:17:20 +03:00

24 lines
457 B
Bash
Executable File

#!/bin/bash -e
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
T=$SDIR/../step
FILE=$1
VALUE=$2
if [ -z "$FILE" ] || [ -z "$VALUE" ]; then
echo "Usage: $0 ACME_FILE ACME_VALUE"
exit 1
fi
ACME_DIR="/var/www/html/.well-known/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