www-apps/misskey: fix cd dir
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2023-01-20 22:55:23 +01:00
parent 3c8af31fc1
commit a0bbafeb97
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ pkg_postinst() {
if su --command "psql misskey -c ''" postgres; then if su --command "psql misskey -c ''" postgres; then
einfo "Running migration…" einfo "Running migration…"
su --shell /bin/bash --command \ su --shell /bin/bash --command \
"cd \"${ED}\"/opt/misskey/misskey && pnpm run migrate" \ "cd \"${EPREFIX}\"/opt/misskey/misskey && 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"
@ -162,7 +162,7 @@ pkg_config() {
| su --command psql postgres || die "database creation failed" | su --command psql postgres || die "database creation failed"
su --shell /bin/bash --command \ su --shell /bin/bash --command \
"cd \"${ED}\"/opt/misskey/misskey && pnpm run init" \ "cd \"${EPREFIX}\"/opt/misskey/misskey && 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."