From c28f4f5135ff19c81bf939cd7ef039e7ff1625c9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 22 Jun 2018 11:59:58 +0200 Subject: [PATCH] replaced simpleid-9999-r1 with simpleid-9999-r2 --- ...9999-r1.ebuild => simpleid-9999-r2.ebuild} | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) rename www-apps/simpleid/{simpleid-9999-r1.ebuild => simpleid-9999-r2.ebuild} (81%) diff --git a/www-apps/simpleid/simpleid-9999-r1.ebuild b/www-apps/simpleid/simpleid-9999-r2.ebuild similarity index 81% rename from www-apps/simpleid/simpleid-9999-r1.ebuild rename to www-apps/simpleid/simpleid-9999-r2.ebuild index 539e8e8..062bd72 100644 --- a/www-apps/simpleid/simpleid-9999-r1.ebuild +++ b/www-apps/simpleid/simpleid-9999-r2.ebuild @@ -26,16 +26,8 @@ src_unpack() { src_install() { keepdir /etc/simpleid - keepdir /var/cache/simpleid - if use nginx; then - fowners nginx:nginx /var/cache/simpleid - fi - keepdir /var/db/simpleid - if use nginx; then - fowners nginx:nginx /var/db/simpleid - fi mv www/config.php{.dist,} insinto /usr/share/webapps/simpleid @@ -45,11 +37,15 @@ src_install() { } 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 "to learn how to proceed with the installation." - if use nginx; then - einfo "The cache directory is: /var/cache/simpleid" - einfo "The identities directory is: /etc/simpleid" - einfo "The store directory is: /var/db/simpleid" - fi + elog "" + einfo "The cache directory is: /var/cache/simpleid" + einfo "The identities directory is: /etc/simpleid" + einfo "The store directory is: /var/db/simpleid" + einfo "The webserver needs write-access to the cache and store." }