Commit 1d4847a8 authored by Benoît's avatar Benoît
Browse files

Added ipcrm -a ; to prevent fail to start apache due to this errors :

[Wed Mar 02 09:36:45.447126 2022] [auth_digest:error] [pid 21400] (28)No space left on device: AH01762: Failed to create shared memory segment on file /run/httpd/authdigest_shm.21400
[Wed Mar 02 09:36:45.447150 2022] [auth_digest:error] [pid 21400] (28)No space left on device: AH01760: failed to initialize shm - all nonce-count checking and one-time noncesdisabled
parent 6fb293de
......@@ -12,9 +12,9 @@ elif [ $(rpm --eval '%{centos_ver}') = 7 ] || [ $(rpm --eval '%{centos_ver}') =
/usr/bin/yum -y install httpd certbot python2-certbot-apache --enablerepo=epel --skip-broken
if [ -f "/etc/letsencrypt/live/$(hostname)/fullchain.pem" ]; then
/usr/sbin/service httpd start ; /usr/bin/certbot renew ; /usr/sbin/service httpd stop
ipcrm -a ; /usr/sbin/service httpd start ; /usr/bin/certbot renew ; /usr/sbin/service httpd stop
else
/usr/sbin/service httpd start ; /usr/bin/certbot certonly --webroot --webroot-path /var/www/html/ -d $(hostname) ; /usr/sbin/service httpd stop
ipcrm -a ; /usr/sbin/service httpd start ; /usr/bin/certbot certonly --webroot --webroot-path /var/www/html/ -d $(hostname) ; /usr/sbin/service httpd stop
fi
/usr/bin/openssl pkcs12 -export -out /root/keystore.pkcs12 -in /etc/letsencrypt/live/$(hostname)/fullchain.pem -inkey /etc/letsencrypt/live/$(hostname)/privkey.pem -password pass:password
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment