summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-usrlocal
diff options
context:
space:
mode:
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 00000000..a2f004db
--- /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