Commit 1dc67550 by Łukasz Nowak

fix "caddy-frontend: Improve validation with decoupled configuration state calculation"

The last state value has been reverted by mistake, put back correct one.
1 parent 9bf0016e
......@@ -102,7 +102,7 @@ md5sum = 89839a3f4ab71cab459afd1c27d00326
[template-configuration-state-script]
filename = templates/configuration-state-script.sh.in
md5sum = 00dfdc488548d1b14e89ba5f2f08fcb8
md5sum = 8d55aea0a4ebc262d2f7c2f96dd5428c
[template-rotate-script]
filename = templates/rotate-script.sh.in
......
......@@ -8,9 +8,11 @@ touch $SIGNATURE_FILE
{{ sha256sum }} {{ path_list }} 2> /dev/null | sort -k 66 > $NSIGNATURE_FILE
if diff "$SIGNATURE_FILE" "$NSIGNATURE_FILE" > /dev/null ; then
# No changes since last run just propagate information
rm -f ${NSIGNATURE_FILE}
exit 1
exit 0
else
# Changes since last run, so store new value and propagate information
mv "$NSIGNATURE_FILE" "$SIGNATURE_FILE"
exit 0
exit 1
fi
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!