summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-usrlocal
diff options
context:
space:
mode:
authorjoey <joey>2003-06-12 14:04:11 +0000
committerjoey <joey>2003-06-12 14:04:11 +0000
commitc6737cf60bbb2079a8e6b3de48b1e518597dafb1 (patch)
tree1c0ea5d82068b3ecbafcd2d873e582eecfbec0d8 /autoscripts/postinst-usrlocal
parentace87ed101089bbbaddce7274d76f02652e5b0a6 (diff)
r589: * Added dh_scrollkeeper, by Ross Burton.
* Added dh_userlocal, by Andrew Stribblehill. (With root.root special case added by me.) * Added dh_installlogcheck, by Jon Middleton. Closes: #184021 * Add aph's name to copyright file too.
Diffstat (limited to 'autoscripts/postinst-usrlocal')
-rw-r--r--autoscripts/postinst-usrlocal16
1 files changed, 16 insertions, 0 deletions
diff --git a/autoscripts/postinst-usrlocal b/autoscripts/postinst-usrlocal
new file mode 100644
index 0000000..a2f004d
--- /dev/null
+++ b/autoscripts/postinst-usrlocal
@@ -0,0 +1,16 @@
+if [ "$1" = configure ]; then
+(
+ while read line; do
+ set -- $line
+ dir="$1"; mode="$2"; user="$3"; group="$4"
+ if [ ! -e "$dir" ]; then
+ if mkdir "$dir" 2>/dev/null; then
+ chown "$user":"$group" "$dir"
+ chmod "$mode" "$dir"
+ fi
+ fi
+ done
+) << DATA
+#DIRS#
+DATA
+fi