From b8266c91ad7f0d51a0676183972be9e6c63baaf5 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 May 2022 16:28:11 +0200 Subject: [PATCH] www-apps/misskey: Remove some dirs to get rid of cached objects Signed-off-by: tastytea --- www-apps/misskey/misskey-12.110.1.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www-apps/misskey/misskey-12.110.1.ebuild b/www-apps/misskey/misskey-12.110.1.ebuild index 68a2d8e..95683e3 100644 --- a/www-apps/misskey/misskey-12.110.1.ebuild +++ b/www-apps/misskey/misskey-12.110.1.ebuild @@ -95,6 +95,14 @@ src_install() { fi } +pkg_preinst() { + ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}" + rm -rf "${EROOT}"/opt/misskey/misskey/built || die + rm -rf "${EROOT}"/opt/misskey/misskey/node_modules || die + rm -rf "${EROOT}"/opt/misskey/misskey/packages || die + eend +} + pkg_postinst() { elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database" elog "Run 'su -c \"yarn migrate\" misskey' in ${EROOT}/opt/misskey/misskey and restart the service to apply changes"