summaryrefslogtreecommitdiff
path: root/debian/vyatta-wanloadbalance.postinst.in
blob: c1504fdcd7feed9d30b95859cd618cbbc340d45b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

LOADBALANCE_DIR=/var/load-balance


prefix=/opt/vyatta

mkdir -p $LOADBALANCE_DIR
chmod 0755 $LOADBALANCE_DIR

touch ${LOADBALANCE_DIR}/wlb.conf

#now move op cmds to correct location
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
rm -fr /opt/vyatta/share/vyatta-cfg/templates/show
exit 0