Files
ProxmoxVE/install/heimdall-dashboard-install.sh
T

59 lines
1.3 KiB
Bash
Raw Normal View History

2023-03-22 20:48:20 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
2023-03-22 20:48:20 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://heimdall.site/ | Github: https://github.com/linuxserver/Heimdall
2023-03-22 20:48:20 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2023-03-22 20:48:20 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
2025-12-15 10:10:04 +01:00
$STD apt install -y apt-transport-https
2023-03-22 20:48:20 -04:00
msg_ok "Installed Dependencies"
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
2025-12-15 10:10:04 +01:00
setup_composer
fetch_and_deploy_gh_release "Heimdall" "linuxserver/Heimdall" "tarball"
msg_info "Setting up Heimdall-Dashboard"
cd /opt/Heimdall
2024-03-14 12:25:19 -04:00
cp .env.example .env
sed -i 's/^APP_ENV=.*/APP_ENV=production/' .env
2024-03-14 12:25:19 -04:00
$STD php artisan key:generate
2025-12-15 10:10:04 +01:00
msg_ok "Setup Heimdall-Dashboard"
2023-03-22 20:48:20 -04:00
msg_info "Creating Service"
2025-12-15 10:10:04 +01:00
cat <<EOF >/etc/systemd/system/heimdall.service
[Unit]
2023-03-22 20:48:20 -04:00
Description=Heimdall
After=network.target
[Service]
Restart=always
RestartSec=5
Type=simple
User=root
WorkingDirectory=/opt/Heimdall
2025-12-15 10:10:04 +01:00
ExecStart=/usr/bin/php artisan serve --port 7990 --host 0.0.0.0
2023-03-22 20:48:20 -04:00
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target
2025-12-15 10:10:04 +01:00
EOF
2025-04-01 20:22:40 +02:00
systemctl enable -q --now heimdall
cd /opt/Heimdall
2025-12-15 10:10:04 +01:00
export COMPOSER_ALLOW_SUPERUSER=1
$STD composer dump-autoload
2024-02-19 18:22:38 -05:00
systemctl restart heimdall.service
2023-03-22 20:48:20 -04:00
msg_ok "Created Service"
motd_ssh
2023-05-15 07:39:30 -04:00
customize
cleanup_lxc