mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
Update
This commit is contained in:
parent
f05dc26fe5
commit
d917937866
@ -22,12 +22,12 @@ log_level = "debug"
|
|||||||
capture_output = True
|
capture_output = True
|
||||||
errorlog = f"./log/error_{date}.log"
|
errorlog = f"./log/error_{date}.log"
|
||||||
|
|
||||||
if os.path.exists("./ssl.ini"):
|
if os.path.exists("./ssl-tls.ini"):
|
||||||
sslConfig = configparser.ConfigParser()
|
sslConfig = configparser.ConfigParser()
|
||||||
sslConfig.read_file(open('./ssl.ini', 'r'))
|
sslConfig.read_file(open('./ssl-tls.ini', 'r'))
|
||||||
if sslConfig.has_section('SSL'):
|
if sslConfig.has_section('SSL/TLS'):
|
||||||
cert = sslConfig.get('SSL', 'certificate_path')
|
cert = sslConfig.get('SSL/TLS', 'certificate_path')
|
||||||
pem = sslConfig.get('SSL', 'private_key_path')
|
pem = sslConfig.get('SSL/TLS', 'private_key_path')
|
||||||
if cert and pem and len(cert) > 0 and len(pem) > 0:
|
if cert and pem and len(cert) > 0 and len(pem) > 0:
|
||||||
certfile = cert
|
certfile = cert
|
||||||
keyfile = pem
|
keyfile = pem
|
||||||
|
@ -24,6 +24,7 @@ else
|
|||||||
cb_work_dir=/etc/letsencrypt
|
cb_work_dir=/etc/letsencrypt
|
||||||
cb_config_dir=/var/lib/letsencrypt
|
cb_config_dir=/var/lib/letsencrypt
|
||||||
fi
|
fi
|
||||||
|
selected_url="https://pypi.org/simple/"
|
||||||
|
|
||||||
dashes='------------------------------------------------------------'
|
dashes='------------------------------------------------------------'
|
||||||
equals='============================================================'
|
equals='============================================================'
|
||||||
@ -289,10 +290,10 @@ install_wgd(){
|
|||||||
else
|
else
|
||||||
printf "[WGDashboard] %s Found existing ./db folder\n" "$heavy_checkmark"
|
printf "[WGDashboard] %s Found existing ./db folder\n" "$heavy_checkmark"
|
||||||
fi
|
fi
|
||||||
if [ ! -f "ssl.ini" ]
|
if [ ! -f "ssl-tls.ini" ]
|
||||||
then
|
then
|
||||||
printf "[SSL]\ncertificate_path = \nprivate_key_path = \n" >> ssl.ini
|
printf "[SSL/TLS]\ncertificate_path = \nprivate_key_path = \n" >> ssl-tls.ini
|
||||||
printf "[WGDashboard] %s Created ssl.ini\n" "$heavy_checkmark"
|
printf "[WGDashboard] %s Created ssl-tls.ini\n" "$heavy_checkmark"
|
||||||
else
|
else
|
||||||
printf "[WGDashboard] %s Found existing ssl.ini\n" "$heavy_checkmark"
|
printf "[WGDashboard] %s Found existing ssl.ini\n" "$heavy_checkmark"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user