diff --git a/ct/discopanel.sh b/ct/discopanel.sh index ead53b280..d132c4d7e 100644 --- a/ct/discopanel.sh +++ b/ct/discopanel.sh @@ -47,16 +47,13 @@ function update_script() { rm -rf /opt/discopanel CLEAN_INSTALL= 1 fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel" - msg_info "Building frontend" + msg_info "Setting up DiscoPanel" cd /opt/discopanel/web/discopanel $STD npm install $STD npm run build - msg_ok "Builded frontend" - - msg_info "Building backend" cd /opt/discopanel $STD go build -o discopanel cmd/discopanel/main.go - msg_ok "Builded backend" + msg_ok "Setup DiscoPanel" msg_info "Restoring Data" cp -r /opt/discopanel_backup_last/* /opt/discopanel/data/ diff --git a/install/discopanel-install.sh b/install/discopanel-install.sh index bf8c3e5d7..b40e2ab1d 100644 --- a/install/discopanel-install.sh +++ b/install/discopanel-install.sh @@ -17,6 +17,10 @@ msg_info "Installing Dependencies" $STD apt install -y build-essential msg_ok "Installed Dependencies" +NODE_VERSION="22" setup_nodejs +setup_go +fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel" + msg_info "Installing Docker" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p $(dirname $DOCKER_CONFIG_PATH) @@ -24,20 +28,13 @@ echo -e '{\n "log-driver": "journald"\n}' >/etc/docker/daemon.json $STD sh <(curl -fsSL https://get.docker.com) msg_ok "Installed Docker" -fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" -setup_nodejs -setup_go - -msg_info "Building DiscoPanel frontend" +msg_info "Setting up DiscoPanel" cd /opt/discopanel/web/discopanel $STD npm install $STD npm run build -msg_ok "Built DiscoPanel frontend" - -msg_info "Building DiscoPanel backend" cd /opt/discopanel $STD go build -o discopanel cmd/discopanel/main.go -msg_ok "Built DiscoPanel backend" +msg_ok "Setup DiscoPanel" msg_info "Creating Service" cat </etc/systemd/system/discopanel.service