mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-29 18:55:01 +02:00
Flame (#15464)
* Add flame (ct) * fix: review feedback * fix: review feedback * Update ct/flame.sh Co-authored-by: Sam Heinz <sam@samheinz.com> * Update flame-install.sh --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Co-authored-by: Sam Heinz <sam@samheinz.com> Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
68b76e7b0b
commit
fd2ec706f3
@@ -0,0 +1,62 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: CrazyWolf13
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/pawelmalak/flame
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y build-essential
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
fetch_and_deploy_gh_release "flame" "pawelmalak/flame" "tarball"
|
||||
|
||||
msg_info "Setting up Flame"
|
||||
cd /opt/flame
|
||||
mkdir -p data public
|
||||
$STD npm install --production
|
||||
cd /opt/flame/client
|
||||
$STD npm install --production
|
||||
$STD npm run build
|
||||
cd /opt/flame
|
||||
cp -r client/build/. public/
|
||||
FLAME_VERSION=$(cat ~/.flame)
|
||||
cat <<EOF >/opt/flame/.env
|
||||
NODE_ENV=production
|
||||
VERSION=${FLAME_VERSION}
|
||||
PASSWORD=
|
||||
EOF
|
||||
msg_ok "Set up Flame"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/flame.service
|
||||
[Unit]
|
||||
Description=Flame Startpage
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/flame
|
||||
ExecStart=/usr/bin/node server.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now flame
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in New Issue
Block a user