소스 검색

Moving certbot crontab

master
Miguel Gagliardo 5 달 전
부모
커밋
8162e68ec9
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      install.sh

+ 3
- 3
install.sh 파일 보기

@@ -214,9 +214,6 @@ systemctl enable --now nginx
214 214
 echo -e "Generate SSL cert\n"
215 215
 certbot --nginx -d ${DOMAIN} --agree-tos --register-unsafely-without-email
216 216
 
217
-# Add certbot SSL cert renewal to crontab
218
-crontab -l | { cat; echo '43 6 * * * certbot renew --post-hook "systemctl reload nginx"'; } | crontab -
219
-
220 217
 # Add custom 8448 SSL port for Matrix Federation
221 218
 sed -i '/listen\ 443\ ssl/a\\tlisten\ 8448\ ssl\;' /etc/nginx/sites-enabled/default
222 219
 nginx -s reload
@@ -227,3 +224,6 @@ systemctl enable --now coturn
227 224
 # Finally, start services
228 225
 # Ensuring the DB dir is clean before bootstrapping
229 226
 systemctl enable --now matrix.service
227
+
228
+# Add certbot SSL cert renewal to crontab
229
+crontab -l | { cat; echo '43 6 * * * certbot renew --post-hook "systemctl reload nginx"'; } | crontab -

Loading…
취소
저장