summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-usrlocal
blob: a2f004db8e53bc1cb927e094d55a948ffe5aa4e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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