www-apps/misskey: Comment pkg_preinst()
Didn't change anything, apparently Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
eca5e011d4
commit
cb790b65ca
|
@ -95,28 +95,27 @@ src_install() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_preinst() {
|
# pkg_preinst() {
|
||||||
# Clean up changes that were made after installation
|
# # Clean up changes that were made after installation
|
||||||
if [[ -d "${EROOT}"/opt/misskey/misskey ]]; then
|
# if [[ -d "${EROOT}"/opt/misskey/misskey ]]; then
|
||||||
cd "${EROOT}"/opt/misskey/misskey || die
|
# cd "${EROOT}"/opt/misskey/misskey || die
|
||||||
|
|
||||||
ebegin "Running 'yarn cleanall' in ${EROOT}/opt/misskey/misskey"
|
# ebegin "Running 'yarn cleanall' in ${EROOT}/opt/misskey/misskey"
|
||||||
su -s /bin/bash -c "yarn cleanall" misskey
|
# su -s /bin/bash -c "yarn --verbose cleanall" misskey
|
||||||
eend ${?}
|
# eend ${?}
|
||||||
|
|
||||||
ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}"
|
# ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}"
|
||||||
rm -rf {built,node_modules,packages} || die
|
# rm -rf {built,node_modules,packages} || die
|
||||||
eend ${?}
|
# eend ${?}
|
||||||
fi
|
# fi
|
||||||
}
|
# }
|
||||||
|
|
||||||
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"
|
||||||
|
|
||||||
ebegin "Running 'yarn migrate'"
|
einfo "Running 'yarn migrate'"
|
||||||
cd "${EROOT}"/opt/misskey/misskey || die
|
cd "${EROOT}"/opt/misskey/misskey || die
|
||||||
su -s /bin/bash -c "yarn migrate" misskey
|
su -s /bin/bash -c "yarn --verbose migrate" misskey || die
|
||||||
eend ${?}
|
|
||||||
|
|
||||||
if use nginx; then
|
if use nginx; then
|
||||||
einfo "An nginx example config can be found at <https://misskey-hub.net/en/docs/admin/nginx.html>"
|
einfo "An nginx example config can be found at <https://misskey-hub.net/en/docs/admin/nginx.html>"
|
Reference in New Issue
Block a user