Fix missing letsencrypt settings in wo.conf

This commit is contained in:
VirtuBox
2020-05-12 01:51:52 +02:00
parent 596e7bf03b
commit 469dd1bfd8
2 changed files with 7 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Installation on raspberry pi 4 - Installation on raspberry pi 4
- Fail2ban configuration when Nginx is not installed - Fail2ban configuration when Nginx is not installed
- Wo-kernel systemd service start failure - Wo-kernel systemd service start failure
- Fix missing letsencrypt settings in wo.conf
### v3.11.4 - 2020-01-17 ### v3.11.4 - 2020-01-17

View File

@@ -641,6 +641,12 @@ wo_woconf() {
if grep -q "log.logging" /etc/wo/wo.conf; then if grep -q "log.logging" /etc/wo/wo.conf; then
sed -i "s/log.logging/log.colorlog/g" /etc/wo/wo.conf sed -i "s/log.logging/log.colorlog/g" /etc/wo/wo.conf
fi fi
if ! grep -q "letsencrypt" /etc/wo/wo.conf; then
echo -e '\n[letsencrypt]\n\nkeylength = "ec-384"' >>/etc/wo/wo.conf
fi
if ! grep -q "php" /etc/wo/wo.conf; then
echo -e '\n[php]\n\nversion = 7.3' >>/etc/wo/wo.conf
fi
fi fi
} }