summaryrefslogtreecommitdiff
path: root/templates/firewall/conntrack-table-size/node.def
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-11 18:27:11 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-11 18:27:11 -0700
commit6def738f5c13611011f4c90ac65dacc8f5217809 (patch)
treefd01308530eff3bce5cb9a743835ee27a1f0f186 /templates/firewall/conntrack-table-size/node.def
parent0502c9f84b50e4e8af8b9e4ee6a8c55a9b96cca4 (diff)
downloadvyatta-cfg-firewall-6def738f5c13611011f4c90ac65dacc8f5217809.tar.gz
vyatta-cfg-firewall-6def738f5c13611011f4c90ac65dacc8f5217809.zip
remove CLI backend env variables usage
* use the new cli-shell-api instead.
Diffstat (limited to 'templates/firewall/conntrack-table-size/node.def')
-rw-r--r--templates/firewall/conntrack-table-size/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/firewall/conntrack-table-size/node.def b/templates/firewall/conntrack-table-size/node.def
index adb994a..310b995 100644
--- a/templates/firewall/conntrack-table-size/node.def
+++ b/templates/firewall/conntrack-table-size/node.def
@@ -29,7 +29,7 @@ update:
sudo sh -c "echo $VAR(@) > \
/proc/sys/net/nf_conntrack_max"
# need to restart conntrackd with updated conntrack table size
- if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/service/conntrack-sync ] ; then
+ if cli-shell-api existsActive service conntrack-sync; then
sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable
fi