summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg.postinst.in
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@ancheng-vm.localdomain>2007-10-05 14:33:57 -0700
committerAn-Cheng Huang <ancheng@ancheng-vm.localdomain>2007-10-05 14:33:57 -0700
commit6a11931a204485965928325c005562732bf70f10 (patch)
treefa5752e519f46989bb05bf79ca3af8b867cd5c20 /debian/vyatta-cfg.postinst.in
parentbe628d70b4c12f1731fb528f1b784edcd792aca0 (diff)
downloadvyatta-cfg-6a11931a204485965928325c005562732bf70f10.tar.gz
vyatta-cfg-6a11931a204485965928325c005562732bf70f10.zip
added postinst to create config directories.
Diffstat (limited to 'debian/vyatta-cfg.postinst.in')
-rw-r--r--debian/vyatta-cfg.postinst.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/vyatta-cfg.postinst.in b/debian/vyatta-cfg.postinst.in
new file mode 100644
index 0000000..6a5a3ec
--- /dev/null
+++ b/debian/vyatta-cfg.postinst.in
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+prefix=@prefix@
+sysconfdir=@sysconfdir@
+
+# make sure config dir and config file dir are usable
+for d in {$prefix,$sysconfdir}/config; do
+ mkdir -p $d
+ chgrp -R quaggavty $d
+ chmod -R g+w $d
+done
+