Commit 1d61e976 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Łukasz Nowak

partially revert "fix "caddy-frontend: Improve validation with decoupled configu…

…ration state calculation""

The states has been correctly propagated and used. Original author had no
idea what he was doing, possibly because of some incorrect assumptions while
developing this fix.

/reviewed-on nexedi/slapos!587
parent 3786f976
...@@ -102,7 +102,7 @@ md5sum = 89839a3f4ab71cab459afd1c27d00326 ...@@ -102,7 +102,7 @@ md5sum = 89839a3f4ab71cab459afd1c27d00326
[template-configuration-state-script] [template-configuration-state-script]
filename = templates/configuration-state-script.sh.in filename = templates/configuration-state-script.sh.in
md5sum = 8d55aea0a4ebc262d2f7c2f96dd5428c md5sum = 4d2537d2698d32a7e909989f8778d144
[template-rotate-script] [template-rotate-script]
filename = templates/rotate-script.sh.in filename = templates/rotate-script.sh.in
......
...@@ -10,9 +10,9 @@ touch $SIGNATURE_FILE ...@@ -10,9 +10,9 @@ touch $SIGNATURE_FILE
if diff "$SIGNATURE_FILE" "$NSIGNATURE_FILE" > /dev/null ; then if diff "$SIGNATURE_FILE" "$NSIGNATURE_FILE" > /dev/null ; then
# No changes since last run just propagate information # No changes since last run just propagate information
rm -f ${NSIGNATURE_FILE} rm -f ${NSIGNATURE_FILE}
exit 0 exit 1
else else
# Changes since last run, so store new value and propagate information # Changes since last run, so store new value and propagate information
mv "$NSIGNATURE_FILE" "$SIGNATURE_FILE" mv "$NSIGNATURE_FILE" "$SIGNATURE_FILE"
exit 1 exit 0
fi fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment