Wanderer: add pocketbase CLI wrapper with env (#13863)

This commit is contained in:
CanbiZ (MickLesk)
2026-04-20 09:24:08 +02:00
committed by GitHub
parent 63296fc3e7
commit 325668d5c9

View File

@@ -60,6 +60,16 @@ wait -n
EOF
chmod +x /opt/wanderer/start.sh
cat <<'EOF' >/usr/local/bin/wanderer-pb
#!/usr/bin/env bash
set -a
source /opt/wanderer/.env
set +a
cd /opt/wanderer/source/db
exec ./pocketbase "$@" --dir="$PB_DB_LOCATION"
EOF
chmod +x /usr/local/bin/wanderer-pb
cat <<EOF >/etc/systemd/system/wanderer-web.service
[Unit]
Description=wanderer