modified to use setup_go

This commit is contained in:
DragoQC 2025-11-28 16:27:30 -05:00
parent 4dbc509cde
commit 590049938c

View File

@ -16,8 +16,7 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt install -y \ $STD apt install -y \
npm \ npm
golang
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Docker" msg_info "Installing Docker"
@ -34,13 +33,15 @@ msg_ok "Installed DiscoPanel"
msg_info "Building DiscoPanel frontend" msg_info "Building DiscoPanel frontend"
cd /opt/discopanel/web/discopanel cd /opt/discopanel/web/discopanel
npm install $STD npm install
npm run build $STD npm run build
msg_ok "Built DiscoPanel frontend" msg_ok "Built DiscoPanel frontend"
setup_go
msg_info "Building DiscoPanel backend" msg_info "Building DiscoPanel backend"
cd /opt/discopanel cd /opt/discopanel
go build -o discopanel cmd/discopanel/main.go $STD go build -o discopanel cmd/discopanel/main.go
msg_ok "Built DiscoPanel backend" msg_ok "Built DiscoPanel backend"
msg_info "Creating Service" msg_info "Creating Service"