Skip to content

Commit bd76340

Browse files
authored
Merge pull request #2 from EveringhamCurtis/patch-1
TODO: force 2 digits for date
2 parents c91efa1 + a8cc356 commit bd76340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy_freenas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
DOMAIN_NAME = "your_fqdn"
2727
PROTOCOL = 'http://'
2828
now = datetime.now()
29-
cert = "letsencrypt-%s-%s-%s" %(now.year, now.month, now.day) # TODO: force two digits for month and day
29+
cert = "letsencrypt-%s-%s-%s" %(now.year, now.strftime('%m'), now.strftime('%d'))
3030

3131
# Load cert/key
3232
with open(PRIVATEKEY_PATH, 'r') as file:

0 commit comments

Comments
 (0)