www-apps/misskey: setup pnpm in pkg_{postinst,config}
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2023-01-23 23:48:51 +01:00
parent 3993de0b88
commit d18811561c
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,7 @@ pkg_preinst() {
}
pkg_postinst() {
setup_pnpm
# Only run migrations if database exists
if su --command "psql misskey -c ''" postgres; then
einfo "Running migration…"
@ -155,6 +156,7 @@ pkg_postinst() {
}
pkg_config() {
setup_pnpm
einfo "Initialising PostgreSQL database"
echo -n "password for misskey user: "
read -r MY_PASSWORD || die "Reading password failed"