summaryrefslogtreecommitdiffstats
path: root/www/mod_dav/files/pkg-install.in
blob: e6e1d475e35dad732c22f16ba0e99a8d938a75b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

CHMOD=/bin/chmod
CHOWN=/usr/sbin/chown
TOUCH=/usr/bin/touch

case $2 in
POST-INSTALL)
	%%APXS%% -e -a -n dav libdav.so
	for i in DAVLock.dir DAVLock.pag ; do
	  ${TOUCH} /var/db/$i
	  ${CHOWN} %%WWWOWN%%:%%WWWGRP%% /var/db/$i
	  ${CHMOD} 640 /var/db/$i
	done
	;;
POST-DEINSTALL)
	%%APXS%% -e -A -n dav libdav.so
	for i in DAVLock.dir DAVLock.pag ; do
	  rm -f /var/db/$i
	done
	;;
esac
exit 0
OpenPOWER on IntegriCloud