Fixed application,

Fixed messages,
Removed fetch latest github release
This commit is contained in:
DragoQC 2025-11-28 16:16:59 -05:00
parent 684ce5a218
commit 3a39159a18

View File

@ -32,18 +32,16 @@ msg_info "Installing DiscoPanel"
fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel" fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel"
msg_ok "Installed DiscoPanel" msg_ok "Installed DiscoPanel"
msg_info "Building DiscoPanel frontend Application" msg_info "Building DiscoPanel frontend"
cd /opt/"${APPLICATION}"/web/discopanel || exit cd /opt/discopanel/web/discopanel
npm install npm install
npm run build npm run build
msg_ok "Builded DiscoPanel frontend Application" msg_ok "Built DiscoPanel frontend"
msg_info "Building DiscoPanel backend Application" msg_info "Building DiscoPanel backend"
cd /opt/"${APPLICATION}" || exit cd /opt/discopanel
go build -o discopanel cmd/discopanel/main.go go build -o discopanel cmd/discopanel/main.go
msg_ok "Built DiscoPanel backend"
echo "$DISCOPANEL_LATEST_VERSION" >/opt/"${APPLICATION}"_version.txt
msg_ok "Builded DiscoPanel backend Application"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/"${APPLICATION}".service cat <<EOF >/etc/systemd/system/"${APPLICATION}".service