DiscoPanel: add go for update build process (#10991)

* Refactor Go installation and DiscoPanel build process

Updated the Go installation process and modified the build command for DiscoPanel. Also updated the systemd service configuration to include Go in the PATH.

* Using setup_go

Using setup_go instead of a manual installation.
This commit is contained in:
miausalvaje
2026-01-20 13:24:32 +01:00
committed by GitHub
parent 3f05972eb9
commit 1816b0169e

View File

@@ -54,9 +54,14 @@ function update_script() {
cd /opt/discopanel/web/discopanel cd /opt/discopanel/web/discopanel
$STD npm install $STD npm install
$STD npm run build $STD npm run build
msg_ok "Built Web Interface"
setup_go
msg_info "Building DiscoPanel"
cd /opt/discopanel cd /opt/discopanel
$STD go build -o discopanel cmd/discopanel/main.go $STD go build -o discopanel cmd/discopanel/main.go
msg_ok "Setup DiscoPanel" msg_ok "Built DiscoPanel"
msg_info "Restoring Data" msg_info "Restoring Data"
mkdir -p /opt/discopanel/data mkdir -p /opt/discopanel/data