diff options
author | Michael Larson <mike@vyatta.com> | 2010-11-18 17:03:06 -0800 |
---|---|---|
committer | Michael Larson <mike@vyatta.com> | 2010-11-18 17:03:06 -0800 |
commit | 6ec4dddcd88975a31358983bfcebdb2c6459563e (patch) | |
tree | 37b3b76880b051567c755ef32b191dc9c1ee9bbe /src/common/defs.h | |
parent | 1b346441e7612dee9985ef1e8c4a4292fbda90df (diff) | |
download | vyatta-cfg-6ec4dddcd88975a31358983bfcebdb2c6459563e.tar.gz vyatta-cfg-6ec4dddcd88975a31358983bfcebdb2c6459563e.zip |
1) Ordered evaluation of these scripts similar to what is found in
/etc/rc* system. An integer at the beginning of the script identifies
the order in which the script is executed (i.e. 01test is run before
55monkey).
2) There is now a pre-commit hook that can be used. These scripts are
located at: /etc/precommit and are invoked before commit has started
processing actions.
3) A success/failure environment flag set before a process has run has
been changed to a tri-state:
SUCCESS = all priority groups succeeded
FAILURE = all priority groups failed
PARTIAL = mixed success/failed
Diffstat (limited to 'src/common/defs.h')
-rw-r--r-- | src/common/defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/defs.h b/src/common/defs.h index b931bd9..331fe2b 100644 --- a/src/common/defs.h +++ b/src/common/defs.h @@ -20,7 +20,8 @@ #define ENV_COMMIT_STATUS "COMMIT_STATUS" #define COMMIT_CHANGES_FILE "/tmp/.changes" -#define COMMIT_HOOK_DIR "/etc/commit" +#define POST_COMMIT_HOOK_DIR "/etc/commit" +#define PRE_COMMIT_HOOK_DIR "/etc/pre_commit" struct Result { |