Skip to content

Commit d60b0f3

Browse files
authored
Merge pull request #70 from jjijack/patch-1
Update deploy_freenas.py
2 parents 69400dc + 72e0a48 commit d60b0f3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

deploy_config.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ password = YourSuperSecurePassword#@#$*
2424

2525
# privkey_path is the path to the certificate private key on your system. Default
2626
# assumes you're using acme.sh:
27-
# /root/.acme.sh/cert_fqdn/cert_fqdn.key
27+
# /root/.acme.sh/cert_fqdn/cert_fqdn.key or /root/.acme.sh/cert_fqdn_ecc/cert_fqdn.key
2828
# privkey_path = /some/other/path
2929

3030
# fullchain_path is the path to the full chain (leaf cert + intermediate certs)
3131
# on your system. Default assumes you're using acme.sh:
32-
# /root/.acme.sh/cert_fqdn/fullchain.cer
32+
# /root/.acme.sh/cert_fqdn/fullchain.cer or /root/.acme.sh/cert_fqdn_ecc/fullchain.cer
3333
# fullchain_path = /some/other/other/path
3434

3535
# protocol sets the connection protocol, http or https. Include '://' at the end.

deploy_freenas.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@
5050
FREENAS_ADDRESS = deploy.get('connect_host','localhost')
5151
VERIFY = deploy.getboolean('verify',fallback=False)
5252
PRIVATEKEY_PATH = deploy.get('privkey_path',"/root/.acme.sh/" + DOMAIN_NAME + "/" + DOMAIN_NAME + ".key")
53+
if os.path.isfile(PRIVATEKEY_PATH)==False:
54+
PRIVATEKEY_PATH = deploy.get('privkey_path',"/root/.acme.sh/" + DOMAIN_NAME + "_ecc/" + DOMAIN_NAME + ".key")
5355
FULLCHAIN_PATH = deploy.get('fullchain_path',"/root/.acme.sh/" + DOMAIN_NAME + "/fullchain.cer")
56+
if os.path.isfile(FULLCHAIN_PATH)==False:
57+
FULLCHAIN_PATH = deploy.get('fullchain_path',"/root/.acme.sh/" + DOMAIN_NAME + "_ecc/fullchain.cer")
5458
PROTOCOL = deploy.get('protocol','http://')
5559
PORT = deploy.get('port','80')
5660
UI_CERTIFICATE_ENABLED = deploy.getboolean('ui_certificate_enabled',fallback=True)

0 commit comments

Comments
 (0)