Files
ProxmoxVEDHelperScripts/install/labca-install.sh
CanbiZ (MickLesk) 558c27ec88 Add Baserow, LabCA, and LobeHub installers
Add container templates, install scripts, and metadata for Baserow, LabCA, and LobeHub. New ct/*.sh scripts provide container build and update logic (fetching GitHub releases, backup/restore, build steps). New install/*.sh scripts install dependencies, configure PostgreSQL/Node/uv/PNPM as needed, run migrations, and create systemd services for each app. Corresponding json/*.json entries add metadata (ports, resource defaults, docs, and notes) for UI/registry integration.
2026-03-25 17:34:25 +01:00

54 lines
1.1 KiB
Bash

#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://github.com/hakwerk/labca
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "labca-gui" "hakwerk/labca" "binary"
msg_info "Configuring LabCA"
mkdir -p /etc/labca
$STD labca-gui -config /etc/labca/config.json -port 3000 -init
msg_ok "Configured LabCA"
msg_info "Creating Service"
useradd --system --home /etc/labca --shell /bin/false labca
chown -R labca:labca /etc/labca
cat <<EOF >/etc/systemd/system/labca.service
[Unit]
Description=LabCA GUI Service
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=30
StartLimitBurst=3
[Service]
Type=simple
User=labca
Group=labca
WorkingDirectory=/etc/labca
ExecStart=/usr/bin/labca-gui -config /etc/labca/config.json
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now labca
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc