diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2008-02-11 17:25:08 -0800 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2008-02-11 17:25:08 -0800 |
commit | aaaa54644cbf913f64cbce09c7610ec332f2e613 (patch) | |
tree | b853c4e9dea200498efbd2f14b06704bea269dde | |
parent | 0026eab14fd397680d5ed653bac1bc5b09e9c8b1 (diff) | |
download | vyatta-wanloadbalance-aaaa54644cbf913f64cbce09c7610ec332f2e613.tar.gz vyatta-wanloadbalance-aaaa54644cbf913f64cbce09c7610ec332f2e613.zip |
more packaging tweaks and bugfixes.
-rw-r--r-- | debian/vyatta-wanloadbalance.postinst.in | 5 | ||||
-rw-r--r-- | debian/vyatta-wanloadbalance.postrm.in | 2 | ||||
-rw-r--r-- | scripts/vyatta-wanloadbalance.pl | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/debian/vyatta-wanloadbalance.postinst.in b/debian/vyatta-wanloadbalance.postinst.in index 90fde6d..5f861cf 100644 --- a/debian/vyatta-wanloadbalance.postinst.in +++ b/debian/vyatta-wanloadbalance.postinst.in @@ -9,7 +9,10 @@ sysconfdir=${prefix}/etc mkdir -p $LOADBALANCE_DIR chmod 0755 $LOADBALANCE_DIR +touch ${LOADBALANCE_DIR}/wlb.conf + update-rc.d -f vyatta-wanloadbalance defaults 2>/dev/null #now move op cmds to correct location -mv /opt/vyatta/share/vyatta-cfg/templates/show/wan-load-balance /opt/vyatta/share/vyatta-op/templates/show/wan-load-balance
\ No newline at end of file +rm -fr /opt/vyatta/share/vyatta-op/templates/show/wan-load-balance/* +mv /opt/vyatta/share/vyatta-cfg/templates/show/wan-load-balance /opt/vyatta/share/vyatta-op/templates/show/. 2>/dev/null
\ No newline at end of file diff --git a/debian/vyatta-wanloadbalance.postrm.in b/debian/vyatta-wanloadbalance.postrm.in index c9bc1e8..b4835a3 100644 --- a/debian/vyatta-wanloadbalance.postrm.in +++ b/debian/vyatta-wanloadbalance.postrm.in @@ -1,5 +1,5 @@ #!/bin/bash which /etc/init.d/vyatta-wanloadbalance >/dev/null && /etc/init.d/vyatta-wanloadbalance stop -update-rc.d vyatta-wanloadbalance remove +update-rc.d -f vyatta-wanloadbalance remove diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl index 20352a5..17371ca 100644 --- a/scripts/vyatta-wanloadbalance.pl +++ b/scripts/vyatta-wanloadbalance.pl @@ -163,8 +163,8 @@ my $conf_file = '/var/load-balance/wlb.conf'; my $conf_lck_file = '/var/load-balance/wlb.conf.lck'; #open file -open FILE, "<$conf_file"; -open FILE_LCK, "+>$conf_lck_file"; +open(FILE, "<$conf_file") or die "Can't open wlb config file"; +open(FILE_LCK, "+>$conf_lck_file") or die "Can't open wlb lock file"; write_health(); |