From cb790b65ca43c01eb2ea2f6df002a9784a311f9b Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 May 2022 19:13:09 +0200 Subject: [PATCH] www-apps/misskey: Comment pkg_preinst() Didn't change anything, apparently Signed-off-by: tastytea --- ...1-r2.ebuild => misskey-12.110.1-r3.ebuild} | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) rename www-apps/misskey/{misskey-12.110.1-r2.ebuild => misskey-12.110.1-r3.ebuild} (86%) diff --git a/www-apps/misskey/misskey-12.110.1-r2.ebuild b/www-apps/misskey/misskey-12.110.1-r3.ebuild similarity index 86% rename from www-apps/misskey/misskey-12.110.1-r2.ebuild rename to www-apps/misskey/misskey-12.110.1-r3.ebuild index 60a8bdabf..a1f4daa5d 100644 --- a/www-apps/misskey/misskey-12.110.1-r2.ebuild +++ b/www-apps/misskey/misskey-12.110.1-r3.ebuild @@ -95,28 +95,27 @@ src_install() { fi } -pkg_preinst() { - # Clean up changes that were made after installation - if [[ -d "${EROOT}"/opt/misskey/misskey ]]; then - cd "${EROOT}"/opt/misskey/misskey || die +# pkg_preinst() { +# # Clean up changes that were made after installation +# if [[ -d "${EROOT}"/opt/misskey/misskey ]]; then +# cd "${EROOT}"/opt/misskey/misskey || die - ebegin "Running 'yarn cleanall' in ${EROOT}/opt/misskey/misskey" - su -s /bin/bash -c "yarn cleanall" misskey - eend ${?} +# ebegin "Running 'yarn cleanall' in ${EROOT}/opt/misskey/misskey" +# su -s /bin/bash -c "yarn --verbose cleanall" misskey +# eend ${?} - ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}" - rm -rf {built,node_modules,packages} || die - eend ${?} - fi -} +# ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}" +# rm -rf {built,node_modules,packages} || die +# eend ${?} +# fi +# } pkg_postinst() { elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database" - ebegin "Running 'yarn migrate'" + einfo "Running 'yarn migrate'" cd "${EROOT}"/opt/misskey/misskey || die - su -s /bin/bash -c "yarn migrate" misskey - eend ${?} + su -s /bin/bash -c "yarn --verbose migrate" misskey || die if use nginx; then einfo "An nginx example config can be found at "