Compare commits

..

No commits in common. '8c26b9d43305e4459164dfc955c105945d0868e8' and 'cb9dae54c9ca896dfab8d2a5125b89120bec706f' have entirely different histories.

@ -99,10 +99,10 @@ while is_on:
else:
stateChanged = False
# delete state.log so I can write to it cleanly
# old file removal must happen after state tracking:
os.remove("/shared/state.log")
# queue up an alert if stateChanged = True
results = []
with open("/shared/results.json", "r") as json_File:
for line in json_File:
@ -114,7 +114,7 @@ while is_on:
errorText = key + " returned with status " + str(value) + "\n"
errorFile.write(errorText)
# Copy current results to state.log file for next iteration
# track state
errorFile = open("/shared/state.log", "a+")
errorFile.write(json_string)
errorFile.write(cert_json)

@ -7,12 +7,13 @@ RUN apk update
RUN apk add \
python3 \
python-dev \
py-cryptography \
py3-openssl
py-cryptography
RUN python3 -m pip install --upgrade pip \
&& pip3 install requests \
&& pip3 install whois
&& pip3 install whois \
&& pip3 install pyopenssl
COPY ./ ./

Loading…
Cancel
Save