www-apps/misskey: unkeyword 13.0.0 for ~amd64
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
cca36e0101
commit
3015de0b9e
@ -28,7 +28,7 @@ SRC_URI="
|
|||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
# KEYWORDS="~amd64"
|
||||||
IUSE="nginx +savedconfig source"
|
IUSE="nginx +savedconfig source"
|
||||||
|
|
||||||
REQUIRED_USE="savedconfig"
|
REQUIRED_USE="savedconfig"
|
||||||
@ -136,13 +136,11 @@ pkg_preinst() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
setup_pnpm
|
|
||||||
|
|
||||||
# Only run migrations if database exists
|
# Only run migrations if database exists
|
||||||
if su --login --command "psql misskey -c ''" postgres; then
|
if su --login --command "psql misskey -c ''" postgres; then
|
||||||
einfo "Running migration…"
|
einfo "Running migration…"
|
||||||
su --shell /bin/bash --login --command \
|
su --shell /bin/bash --login --command \
|
||||||
"cd misskey && pnpm run migrate" \
|
"cd misskey && PATH=\"${T}/bin/pnpm:${PATH}\" pnpm run migrate" \
|
||||||
misskey || die "migration failed"
|
misskey || die "migration failed"
|
||||||
else
|
else
|
||||||
elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database"
|
elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database"
|
||||||
@ -156,8 +154,6 @@ pkg_postinst() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pkg_config() {
|
pkg_config() {
|
||||||
setup_pnpm
|
|
||||||
|
|
||||||
einfo "Initialising PostgreSQL database"
|
einfo "Initialising PostgreSQL database"
|
||||||
echo -n "password for misskey user: "
|
echo -n "password for misskey user: "
|
||||||
read -r MY_PASSWORD || die "Reading password failed"
|
read -r MY_PASSWORD || die "Reading password failed"
|
||||||
@ -165,7 +161,7 @@ pkg_config() {
|
|||||||
| su --login --command psql postgres || die "database creation failed"
|
| su --login --command psql postgres || die "database creation failed"
|
||||||
|
|
||||||
su --shell /bin/bash --login --command \
|
su --shell /bin/bash --login --command \
|
||||||
"cd misskey && pnpm run init" \
|
"cd misskey && PATH=\"${T}/bin/pnpm:${PATH}\" pnpm run init" \
|
||||||
misskey || die "database initialisation failed"
|
misskey || die "database initialisation failed"
|
||||||
|
|
||||||
ewarn "When you first start Misskey you will be asked to add an admin account via the web interface, and registrations are enabled."
|
ewarn "When you first start Misskey you will be asked to add an admin account via the web interface, and registrations are enabled."
|
||||||
|
Reference in New Issue
Block a user