update letsencrypt settings
This commit is contained in:
@@ -16,7 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
|
||||
- Nginx module nginx_vts
|
||||
- Migration script from nginx-ee to nginx-wo
|
||||
- Partial support for Debian 9 (testing)
|
||||
- Support for Debian 9 (testing)
|
||||
- New Nginx build v1.14.2
|
||||
|
||||
#### Changed
|
||||
|
||||
9
install
9
install
@@ -136,7 +136,7 @@ wo_install_dep()
|
||||
if [ "$wo_linux_distro" == "Ubuntu" ]; then
|
||||
apt-get -y -qq install build-essential curl gzip python3 python3-apt python3-setuptools python3-dev sqlite3 git tar software-properties-common pigz gnupg2 fail2ban > /dev/null 2>&1
|
||||
else
|
||||
apt-get -y -qq install build-essential curl gzip dirmngr sudo python3 python3-apt python3-setuptools python3-dev sqlite3 git tar software-properties-common pigz gnupg2 fail2ban > /dev/null 2>&1
|
||||
apt-get -y -qq install build-essential curl gzip dirmngr sudo python3 python3-apt python3-setuptools python3-dev ca-certificates sqlite3 git tar software-properties-common pigz apt-transport-https gnupg2 fail2ban > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
locale-gen en
|
||||
@@ -348,7 +348,10 @@ wo_install_acme_sh() {
|
||||
--config-home /etc/letsencrypt/config \
|
||||
--cert-home /etc/letsencrypt/renewal
|
||||
# enable auto-upgrade
|
||||
/etc/letsencrypt/acme.sh --upgrade --auto-upgrade
|
||||
/etc/letsencrypt/acme.sh --upgrade --auto-upgrade \
|
||||
--home /etc/letsencrypt \
|
||||
--config-home /etc/letsencrypt/config \
|
||||
--cert-home /etc/letsencrypt/renewal
|
||||
|
||||
# Let's Encrypt .well-known folder setup
|
||||
if [ ! -d /var/www/html/.well-known/acme-challenge ]; then
|
||||
@@ -356,7 +359,7 @@ wo_install_acme_sh() {
|
||||
chown -R www-data:www-data /var/www/html /var/www/html/.well-known
|
||||
fi
|
||||
|
||||
} >> /var/log/wo/install.log
|
||||
} >> /var/log/wo/install.log 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user