summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-11-20 14:38:27 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-11-20 14:38:27 -0800
commit09ac941273b7022e24bd9d3cae2f3fa4e982bb8c (patch)
treec79220b8ae417c4bce5459b47dee96d25da8fa57
parentb008f523de0c8369962b41271becebf0cf5be801 (diff)
downloadvyatta-config-mgmt-09ac941273b7022e24bd9d3cae2f3fa4e982bb8c.tar.gz
vyatta-config-mgmt-09ac941273b7022e24bd9d3cae2f3fa4e982bb8c.zip
Add number to /etc/commit scripts to set execution ordering.
-rwxr-xr-xscripts/vyatta-config-mgmt.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index d643aef..bf53b29 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -55,7 +55,13 @@ my $debug = 0;
sub get_link {
my ($path) = @_;
- my $link = $commit_hook_dir . basename($path);
+ my $script = basename($path);
+ if ($script =~ /revs/) {
+ $script = "01" . $script;
+ } elsif ($script =~ /push/) {
+ $script = "02" . $script;
+ }
+ my $link = $commit_hook_dir . $script;
return $link;
}