mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-26 03:45:05 +02:00
Wanderer: add pocketbase CLI wrapper with env (#13863)
This commit is contained in:
committed by
GitHub
parent
63296fc3e7
commit
325668d5c9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user