update to debian 9
This commit is contained in:
parent
0a7b356df5
commit
83019c66e1
@ -1,9 +1,10 @@
|
|||||||
FROM debian8_python3
|
FROM debian:9
|
||||||
|
|
||||||
MAINTAINER Joachim Lusiardi
|
MAINTAINER Joachim Lusiardi
|
||||||
|
|
||||||
RUN apt-get update; \
|
RUN apt-get update; \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
|
python3-pip \
|
||||||
git \
|
git \
|
||||||
haproxy; \
|
haproxy; \
|
||||||
git clone https://github.com/letsencrypt/letsencrypt ;\
|
git clone https://github.com/letsencrypt/letsencrypt ;\
|
||||||
|
3
start.py
3
start.py
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python3.4
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
@ -147,7 +147,6 @@ def cert_watcher():
|
|||||||
ssl_active = ssl_possible() and is_haproxy_running()
|
ssl_active = ssl_possible() and is_haproxy_running()
|
||||||
cert_file_hash = hash_cert_file()
|
cert_file_hash = hash_cert_file()
|
||||||
while True:
|
while True:
|
||||||
logging.info('ping')
|
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
|
|
||||||
if not ssl_active:
|
if not ssl_active:
|
||||||
|
Loading…
Reference in New Issue
Block a user