diff options
author | Joey Hess <joeyh@debian.org> | 2013-09-21 13:16:34 -0400 |
---|---|---|
committer | Joey Hess <joeyh@debian.org> | 2013-09-21 13:16:34 -0400 |
commit | 775d1ca63964312b7f519edfe0cce476669617f6 (patch) | |
tree | 29834fd91c532ee93aec9dfe6e8f1fc4e19019f7 /autoscripts/postinst-usrlocal |
debhelper (9.20130921) unstable; urgency=low
* dh: Call dh_installxfonts after dh_link, so that it will
notice fonts installed via symlinks. Closes: #721264
* Fix FTBFS with perl 5.18. Closes: #722501
* dh_installchangelogs: Add changelog.md to the list of common
changelog filenames.
# imported from the archive
Diffstat (limited to 'autoscripts/postinst-usrlocal')
-rw-r--r-- | autoscripts/postinst-usrlocal | 16 |
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 |