Compare commits

..

7 Commits

Author SHA1 Message Date
github-actions[bot]
a73854e0e2 Update CHANGELOG.md 2026-04-06 19:45:30 +00:00
CanbiZ (MickLesk)
daffd75719 Papra: check env before copy (#13553) 2026-04-06 21:45:11 +02:00
community-scripts-pr-app[bot]
c999a61c60 Update .app files (#13559)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2026-04-06 21:08:26 +02:00
community-scripts-pr-app[bot]
e8201ef3e5 Update CHANGELOG.md (#13560)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-06 19:07:45 +00:00
community-scripts-pr-app[bot]
10af5efd6b Update CHANGELOG.md (#13558)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-06 19:07:30 +00:00
community-scripts-pr-app[bot]
00fdd3a3c5 Update .app files (#13556)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2026-04-06 21:07:20 +02:00
community-scripts-pr-app[bot]
0c5bcb8122 Update CHANGELOG.md (#13557)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-06 19:07:09 +00:00
2 changed files with 31 additions and 2 deletions

View File

@@ -441,10 +441,16 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-04-06
### 🆕 New Scripts
- OpenThread Border Router ([#13536](https://github.com/community-scripts/ProxmoxVE/pull/13536))
- Homelable ([#13539](https://github.com/community-scripts/ProxmoxVE/pull/13539))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Papra: check env before copy [@MickLesk](https://github.com/MickLesk) ([#13553](https://github.com/community-scripts/ProxmoxVE/pull/13553))
- changedetection: fix: typing_extensions error [@CrazyWolf13](https://github.com/CrazyWolf13) ([#13548](https://github.com/community-scripts/ProxmoxVE/pull/13548))
- kasm: fix: fetch latest version [@CrazyWolf13](https://github.com/CrazyWolf13) ([#13547](https://github.com/community-scripts/ProxmoxVE/pull/13547))

View File

@@ -35,14 +35,37 @@ function update_script() {
msg_ok "Stopped Service"
msg_info "Backing up Configuration"
cp /opt/papra/apps/papra-server/.env /opt/papra_env.bak
if [[ -f /opt/papra/apps/papra-server/.env ]]; then
cp /opt/papra/apps/papra-server/.env /opt/papra_env.bak
fi
msg_ok "Backed up Configuration"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "papra" "papra-hq/papra" "tarball"
msg_info "Building Application"
cd /opt/papra
cp /opt/papra_env.bak /opt/papra/apps/papra-server/.env
if [[ -f /opt/papra_env.bak ]]; then
cp /opt/papra_env.bak /opt/papra/apps/papra-server/.env
else
msg_warn ".env missing, regenerating from defaults"
LOCAL_IP=$(hostname -I | awk '{print $1}')
cat <<EOF >/opt/papra/apps/papra-server/.env
NODE_ENV=production
SERVER_SERVE_PUBLIC_DIR=true
PORT=1221
DATABASE_URL=file:/opt/papra_data/db/db.sqlite
DOCUMENT_STORAGE_FILESYSTEM_ROOT=/opt/papra_data/documents
PAPRA_CONFIG_DIR=/opt/papra_data
AUTH_SECRET=$(cat /opt/papra_data/.secret)
BETTER_AUTH_SECRET=$(cat /opt/papra_data/.secret)
BETTER_AUTH_TELEMETRY=0
CLIENT_BASE_URL=http://${LOCAL_IP}:1221
SERVER_BASE_URL=http://${LOCAL_IP}:1221
EMAILS_DRY_RUN=true
INGESTION_FOLDER_IS_ENABLED=true
INGESTION_FOLDER_ROOT_PATH=/opt/papra_data/ingestion
EOF
fi
$STD pnpm install --frozen-lockfile
$STD pnpm --filter "@papra/app-client..." run build
$STD pnpm --filter "@papra/app-server..." run build