Commit a761d484 authored by matze's avatar matze

Add check for the state parameter in manifest.

This only allow following cases:
  - present
  - absent
else, it will abort with an error message.
parent e5d86ffc
......@@ -22,3 +22,12 @@ if [ -f "$__object/parameter/raw" ] && [ -f "$__object/parameter/raw_command" ];
echo "ERROR: both raw and raw_command specified" >&2
exit 1
case "$(cat "$__object/parameter/state" 2>/dev/null || echo "present")" in
present) ;;
absent) ;;
echo "ERROR: unkown cron state" >&2
exit 2
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