www-apps/misskey: Remove some dirs to get rid of cached objects

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-05-21 16:28:11 +02:00
parent d32c382b8b
commit b8266c91ad
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -95,6 +95,14 @@ src_install() {
fi 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() { pkg_postinst() {
elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database" 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" elog "Run 'su -c \"yarn migrate\" misskey' in ${EROOT}/opt/misskey/misskey and restart the service to apply changes"