directadmin:directadmin-hooks:check_letsencrypt_expiries_post.sh

Directadmin Hooks: check_letsencrypt_expiries_post.sh

Script custom hooks check_letsencrypt_expiries_post.sh ini berjalan setiap malam setelah proses pengecekan renewal ssl LetsEncrypt.

Variabel

renewed=0|1

Jika bernilai 1, artinya terdapat ssl yang telah di perpanjang dan apache harus di reload.

Sebagai catatan : bahwa prosess tally sudah otomatis merestart setelah proses tally malam, sehingga perlakukan ini tidak dibutuhkan kecuali anda merestart apache secara manual dengan menambahkan kode ini :

restart_apache_after_tally=0

Jika anda melakukan hal itu, maka anda membutuhkan custom script untuk merestart apache secara manual. seperti ini :

#!/bin/sh
if [ "$renewed" = "1" ]; then
	echo "action=httpd&value=reload&affect_php_fpm=no" >> /usr/local/directadmin/data/task.queue
fi
exit 0;

Bagaimanapun kita tidak merekomendasikan restart_apache_after_tally=0 kecuali anda memiliki sistem pengecekan yang lain untuk melakukan restart pada service yang memang harus di restart.

Sumber : https://www.directadmin.com/features.php?id=2354

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
directadmin/directadmin-hooks/check_letsencrypt_expiries_post.sh.txt · Last modified: 2021/07/01 22:50 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki