Revision 7a7a3223
Added by Benoît PECCATTE about 7 years ago
rudder-webapp/SOURCES/rudder-upgrade | ||
---|---|---|
then
|
||
# if /bin/true, just remove the hook
|
||
mv "${HOOK_NAME}" "${HOOK_NAME}.disabled"
|
||
elif [ "${CURRENT_CHECKPROMISES}" = "/var/rudder/cfengine-community/bin/cf-promises" ] || [ "${CURRENT_CHECKPROMISES}" = "" ]
|
||
elif [ "${CURRENT_CHECKPROMISES}" = "/var/rudder/cfengine-community/bin/cf-promises" ] || [ -z "${CURRENT_CHECKPROMISES}" ] || [ -f "${HOOK_NAME}.disabled" ]
|
||
then
|
||
# if default value, do nothing
|
||
true
|
||
... | ... | |
then
|
||
# if default value, do nothing
|
||
true
|
||
elif [ -z "${CURRENT_SERVER_COMMAND}" ] || [ -f "${HOOK_NAME}.disabled" ]
|
||
then
|
||
# already migrated
|
||
true
|
||
else
|
||
# if anything else present, put it in a hook replacing the distributed one
|
||
mv "${HOOK_NAME}" "${HOOK_NAME}.disabled"
|
Also available in: Unified diff
Fixes #10466: If run twice rudder-upgrade fails