2010-01-24 14:34:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# create directories not handled by make install
|
|
|
|
[ -d "@CACHEDIR@" ] || { mkdir -p "@CACHEDIR@" && cachedir=1; }
|
|
|
|
[ -d "@LOGDIR@" ] || { mkdir -p "@LOGDIR@" && logdir=1; }
|
|
|
|
[ -d "@DEPOTDIR@/svnrepo" ] || { mkdir -p "@DEPOTDIR@/svnrepo" && svnrepodir=1; }
|
|
|
|
[ -d "@DEPOTDIR@/files" ] || { mkdir -p "@DEPOTDIR@/files" && filesdir=1; }
|
2010-04-28 14:33:25 +00:00
|
|
|
[ -d "@DEPOTDIR@/attachments" ] || { mkdir -p "@DEPOTDIR@/attachments" && attachmentsdir=1; }
|
2015-02-08 05:00:19 +00:00
|
|
|
[ -d "@DEPOTDIR@/usericons" ] || { mkdir -p "@DEPOTDIR@/usericons" && usericonsdir=1; }
|
2010-01-24 14:34:03 +00:00
|
|
|
|
|
|
|
[ -f "@SYSCONFDIR@/apache2/envvars" ] && {
|
|
|
|
GROUP=$(. "@SYSCONFDIR@/apache2/envvars" && echo "${APACHE_RUN_GROUP}")
|
|
|
|
[ -n "${GROUP}" ] && {
|
|
|
|
[ "${cachedir}" = "1" ] && {
|
|
|
|
chgrp -R "${GROUP}" "@CACHEDIR@"
|
|
|
|
chmod 0775 "@CACHEDIR@"
|
|
|
|
}
|
|
|
|
[ "${logdir}" = "1" ] && {
|
|
|
|
chgrp -R "${GROUP}" "@LOGDIR@"
|
|
|
|
chmod 0775 "@LOGDIR@"
|
|
|
|
}
|
|
|
|
[ "${svnrepodir}" = "1" ] && {
|
|
|
|
chgrp -R "${GROUP}" "@DEPOTDIR@/svnrepo"
|
|
|
|
chmod 0775 "@DEPOTDIR@/svnrepo"
|
|
|
|
}
|
2011-02-21 13:44:43 +00:00
|
|
|
[ "${filesdir}" = "1" ] && {
|
|
|
|
chgrp -R "${GROUP}" "@DEPOTDIR@/files"
|
|
|
|
chmod 0775 "@DEPOTDIR@/files"
|
|
|
|
}
|
2010-04-28 14:33:25 +00:00
|
|
|
[ "${attachmentsdir}" = "1" ] && {
|
|
|
|
chgrp -R "${GROUP}" "@DEPOTDIR@/attachments"
|
|
|
|
chmod 0775 "@DEPOTDIR@/attachments"
|
2010-01-24 14:34:03 +00:00
|
|
|
}
|
2015-02-08 05:00:19 +00:00
|
|
|
[ "${usericonsdir}" = "1" ] && {
|
|
|
|
chgrp -R "${GROUP}" "@DEPOTDIR@/usericons"
|
|
|
|
chmod 0775 "@DEPOTDIR@/usericons"
|
|
|
|
}
|
2010-01-24 14:34:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exit 0
|