diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-20 19:25:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 19:25:06 +0100 |
commit | 4f0670c8baedd827d3e2859141f0870539d0475f (patch) | |
tree | ac97a64c9ad58fc60360b30c0678c08eed509732 | |
parent | f2ef21fbd75de3eacc2f1e5c2736c42a4780995c (diff) | |
parent | 901e7d7f21cfff30c7068e51471146e2d7671fff (diff) | |
download | vyatta-cluster-4f0670c8baedd827d3e2859141f0870539d0475f.tar.gz vyatta-cluster-4f0670c8baedd827d3e2859141f0870539d0475f.zip |
Merge pull request #5 from sever-sever/T4083
cluster: T4083: Make run dir for heartbeat
-rwxr-xr-x | scripts/vyatta-update-cluster.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-update-cluster.pl b/scripts/vyatta-update-cluster.pl index 7ab807b..d01bbd3 100755 --- a/scripts/vyatta-update-cluster.pl +++ b/scripts/vyatta-update-cluster.pl @@ -8,6 +8,7 @@ use Vyatta::Cluster::Config; my $HA_DIR = "/etc/ha.d"; my $HA_INIT = "/etc/init.d/heartbeat"; my $SERVICE_DIR = "/etc/init.d"; +my $RUN_DIR = "/run/heartbeat"; my $conntrackd_service = undef; GetOptions("conntrackd_service=s" => \$conntrackd_service, @@ -53,7 +54,7 @@ if (defined($err)) { exit 1; } -my $ret = system("mkdir -p $HA_DIR"); +my $ret = system("mkdir -p $HA_DIR && mkdir -p $RUN_DIR"); if ($ret >> 8) { print STDERR "Error: cannot create $HA_DIR\n"; exit 1; |