diff --git a/ct/gramps-web.sh b/ct/gramps-web.sh index 19f8a0858..a90a80b82 100644 --- a/ct/gramps-web.sh +++ b/ct/gramps-web.sh @@ -85,22 +85,20 @@ function update_script() { msg_ok "Updated Gramps Web API" msg_info "Updating Gramps Web Frontend" - pushd /opt/gramps-web/frontend >/dev/null + cd /opt/gramps-web/frontend export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack enable $STD npm install $STD npm run build - popd >/dev/null msg_ok "Updated Gramps Web Frontend" msg_info "Applying Database Migration" - pushd /opt/gramps-web-api >/dev/null + cd /opt/gramps-web-api GRAMPS_API_CONFIG=/opt/gramps-web/config/config.cfg \ ALEMBIC_CONFIG=/opt/gramps-web-api/alembic.ini \ GRAMPSHOME=/opt/gramps-web/data/gramps \ GRAMPS_DATABASE_PATH=/opt/gramps-web/data/gramps/grampsdb \ $STD /opt/gramps-web/venv/bin/python3 -m gramps_webapi user migrate - popd >/dev/null msg_ok "Applied Database Migration" msg_info "Starting Service" diff --git a/install/gramps-web-install.sh b/install/gramps-web-install.sh index 0014d670b..5a64cf5ac 100644 --- a/install/gramps-web-install.sh +++ b/install/gramps-web-install.sh @@ -88,20 +88,18 @@ $STD uv pip install --no-cache-dir --upgrade pip setuptools wheel $STD uv pip install --no-cache-dir gunicorn $STD uv pip install --no-cache-dir /opt/gramps-web-api -pushd /opt/gramps-web/frontend >/dev/null +cd /opt/gramps-web/frontend export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack enable $STD npm install $STD npm run build -popd >/dev/null -pushd /opt/gramps-web-api >/dev/null +cd /opt/gramps-web-api GRAMPS_API_CONFIG=/opt/gramps-web/config/config.cfg \ ALEMBIC_CONFIG=/opt/gramps-web-api/alembic.ini \ GRAMPSHOME=/opt/gramps-web/data/gramps \ GRAMPS_DATABASE_PATH=/opt/gramps-web/data/gramps/grampsdb \ $STD /opt/gramps-web/venv/bin/python3 -m gramps_webapi user migrate -popd >/dev/null msg_ok "Set up Gramps Web" msg_info "Creating Service"