This commit is contained in:
parent
92b23db2e5
commit
c28f4f5135
@ -26,16 +26,8 @@ src_unpack() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
keepdir /etc/simpleid
|
keepdir /etc/simpleid
|
||||||
|
|
||||||
keepdir /var/cache/simpleid
|
keepdir /var/cache/simpleid
|
||||||
if use nginx; then
|
|
||||||
fowners nginx:nginx /var/cache/simpleid
|
|
||||||
fi
|
|
||||||
|
|
||||||
keepdir /var/db/simpleid
|
keepdir /var/db/simpleid
|
||||||
if use nginx; then
|
|
||||||
fowners nginx:nginx /var/db/simpleid
|
|
||||||
fi
|
|
||||||
|
|
||||||
mv www/config.php{.dist,}
|
mv www/config.php{.dist,}
|
||||||
insinto /usr/share/webapps/simpleid
|
insinto /usr/share/webapps/simpleid
|
||||||
@ -45,11 +37,15 @@ src_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
|
if use nginx; then
|
||||||
|
fowners nginx:nginx /var/cache/simpleid
|
||||||
|
fowners nginx:nginx /var/db/simpleid
|
||||||
|
fi
|
||||||
elog "Read https://simpleid.koinic.net/docs/2/installing/#directories carefully"
|
elog "Read https://simpleid.koinic.net/docs/2/installing/#directories carefully"
|
||||||
elog "to learn how to proceed with the installation."
|
elog "to learn how to proceed with the installation."
|
||||||
if use nginx; then
|
elog ""
|
||||||
einfo "The cache directory is: /var/cache/simpleid"
|
einfo "The cache directory is: /var/cache/simpleid"
|
||||||
einfo "The identities directory is: /etc/simpleid"
|
einfo "The identities directory is: /etc/simpleid"
|
||||||
einfo "The store directory is: /var/db/simpleid"
|
einfo "The store directory is: /var/db/simpleid"
|
||||||
fi
|
einfo "The webserver needs write-access to the cache and store."
|
||||||
}
|
}
|
Reference in New Issue
Block a user