diff --git a/cert/clientRenew b/cert/clientRenew index 9e04058..99c8fd3 100755 --- a/cert/clientRenew +++ b/cert/clientRenew @@ -1,3 +1,7 @@ #!/bin/bash -e -# https://habr.com/ru/articles/735712/ -certbot certonly --manual --preferred-challenges http -d "kornerr.ru" +SDIR=$(cd "$(dirname "$0")" ; pwd -P) +T=$SDIR/../step + +STEP=0 +source $T/ensureRootUser +source $T/renewCertbot diff --git a/step/renewCertbot b/step/renewCertbot new file mode 100644 index 0000000..c8bb52f --- /dev/null +++ b/step/renewCertbot @@ -0,0 +1,6 @@ +#!/bin/bash -e +# https://habr.com/ru/articles/735712/ + +STEP=$((STEP+1)) +echo -e "\n> > > > Шаг №$STEP. Просим certbot обновить" +certbot certonly --manual --preferred-challenges http -d "kornerr.ru"