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

@@ -641,6 +641,12 @@ wo_woconf() {
if grep -q "log.logging" /etc/wo/wo.conf; then
sed -i "s/log.logging/log.colorlog/g" /etc/wo/wo.conf
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
}