summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-03-24 19:34:39 +0100
committerDaniil Baturin <daniil@baturin.org>2015-03-24 19:34:39 +0100
commit86f5b7e0ded02ff461f8c8039152484343c2ef6f (patch)
treeafed97b4d4992f31a2df30efd49d1d055bcacc94 /debian
parent6553a09ea3978af2ed0a43fc41bdc99d1cd2be9a (diff)
downloadvyatta-cfg-quagga-86f5b7e0ded02ff461f8c8039152484343c2ef6f.tar.gz
vyatta-cfg-quagga-86f5b7e0ded02ff461f8c8039152484343c2ef6f.zip
Bug #521: save quagga daemon configs to /opt/vyatta/etc/quagga at commit time.
Diffstat (limited to 'debian')
-rw-r--r--debian/postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
index 02a3f77e..9d8e895e 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -7,3 +7,9 @@ fi
if [ -f /usr/bin/vtysh ] && [ ! -f /opt/vyatta/sbin/policy/vtysh ]; then
ln -s /usr/bin/vtysh /opt/vyatta/sbin/policy/vtysh
fi
+
+# Create a directory for autosaved quagga configs
+AUTOSAVE_DIR=/opt/vyatta/etc/quagga
+mkdir -p $AUTOSAVE_DIR
+chown root:vyattacfg $AUTOSAVE_DIR
+chmod 770 $AUTOSAVE_DIR