Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Created February 27, 2017 18:46
Show Gist options
  • Save neilhwatson/b66ccd8bd1b4ff6187f6e08daf5de46f to your computer and use it in GitHub Desktop.
Save neilhwatson/b66ccd8bd1b4ff6187f6e08daf5de46f to your computer and use it in GitHub Desktop.

Revisions

  1. neilhwatson created this gist Feb 27, 2017.
    28 changes: 28 additions & 0 deletions false.cf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    body common control
    {
    bundlesequence => {
    "main",
    };
    }

    bundle agent main
    {
    methods:

    "any" usebundle => test;
    }

    bundle agent test{

    commands:
    "/bin/false || /bin/true"
    contain => in_shell;
    commands:
    "/bin/true || /bin/true"
    contain => in_shell;

    }
    body contain in_shell
    {
    useshell => "true"; # canonical "useshell" but this is backwards-compatible
    }