mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-04 07:55:59 +00: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
|
EOF
|
||||||
chmod +x /opt/wanderer/start.sh
|
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
|
cat <<EOF >/etc/systemd/system/wanderer-web.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=wanderer
|
Description=wanderer
|
||||||
|
|||||||
Reference in New Issue
Block a user