diff --git a/ct/discopanel.sh b/ct/discopanel.sh index 179002485..406602274 100644 --- a/ct/discopanel.sh +++ b/ct/discopanel.sh @@ -29,6 +29,8 @@ function update_script() { exit fi + setup_docker + if check_for_gh_release "discopanel" "nickheyer/discopanel"; then msg_info "Stopping Service" systemctl stop discopanel @@ -42,9 +44,8 @@ function update_script() { /opt/discopanel_backup_last/ msg_ok "Created Backup" - rm -rf /opt/discopanel - CLEAN_INSTALL= 1 fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel" + msg_info "Setting up DiscoPanel" cd /opt/discopanel/web/discopanel $STD npm install @@ -55,6 +56,7 @@ function update_script() { msg_info "Restoring Data" cp -r /opt/discopanel_backup_last/* /opt/discopanel/data/ + rm -rf /opt/discopanel_backup_last msg_ok "Restored Data" msg_info "Starting Service" diff --git a/install/discopanel-install.sh b/install/discopanel-install.sh index 6337f0468..1c51a1479 100644 --- a/install/discopanel-install.sh +++ b/install/discopanel-install.sh @@ -19,13 +19,7 @@ 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) -echo -e '{\n "log-driver": "journald"\n}' >/etc/docker/daemon.json -$STD sh <(curl -fsSL https://get.docker.com) -msg_ok "Installed Docker" +setup_docker msg_info "Setting up DiscoPanel" cd /opt/discopanel/web/discopanel