From 2e5376c4d61dfc84656390eb56f7e0d2ce7195c1 Mon Sep 17 00:00:00 2001 From: KernelSailor Date: Mon, 29 Dec 2025 18:18:02 +0100 Subject: [PATCH] Revert "rename snowflake systemd service" This reverts commit 9702978d0c8a10d2597b707031b1a97627597718. --- ct/tor-snowflake.sh | 11 +++++------ install/tor-snowflake-install.sh | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ct/tor-snowflake.sh b/ct/tor-snowflake.sh index 74ed6be57..a3d97604d 100644 --- a/ct/tor-snowflake.sh +++ b/ct/tor-snowflake.sh @@ -35,9 +35,8 @@ function update_script() { RELEASE=$(curl -fsSL https://gitlab.torproject.org/api/v4/projects/tpo%2Fanti-censorship%2Fpluggable-transports%2Fsnowflake/releases | jq -r '.[0].tag_name' | sed 's/^v//') VERSION_FILE="/home/${SNOWFLAKEUSER}/.${APP}_version" if [[ ! -f "${VERSION_FILE}" ]] || [[ "${RELEASE}" != "$(cat "${VERSION_FILE}")" ]]; then - msg_info "Stopping ${APP} Service" - systemctl stop ${APP} - msg_ok "Stopped ${APP} Service" + systemctl stop snowflake-proxy + msg_ok "Stopped Service" setup_go @@ -51,9 +50,9 @@ function update_script() { echo "${RELEASE}" | sudo -H -u ${SNOWFLAKEUSER} bash -c "cd ~ && tee .${APP}_version >/dev/null" msg_ok "Updated ${APP} to v${RELEASE}" - msg_info "Starting ${APP} Service" - systemctl start ${APP} - msg_ok "Started ${APP} Service" + msg_info "Starting Service" + systemctl start snowflake-proxy + msg_ok "Started Service" msg_ok "Updated successfully!" else msg_ok "No update required. ${APP} is already at v${RELEASE}." diff --git a/install/tor-snowflake-install.sh b/install/tor-snowflake-install.sh index f5b917ce5..4db5cb7fe 100644 --- a/install/tor-snowflake-install.sh +++ b/install/tor-snowflake-install.sh @@ -33,7 +33,7 @@ echo "${RELEASE}" | sudo -H -u ${SNOWFLAKEUSER} bash -c "cd ~ && tee .${APP}_ver msg_ok "Built Snowflake Proxy v${RELEASE}" msg_info "Creating Service" -cat </etc/systemd/system/${APP}.service +cat </etc/systemd/system/snowflake-proxy.service [Unit] Description=Snowflake Proxy Service Documentation=https://snowflake.torproject.org/ @@ -52,7 +52,7 @@ RestartSec=10 [Install] WantedBy=multi-user.target EOF -systemctl enable -q --now ${APP} +systemctl enable -q --now snowflake-proxy msg_ok "Created Service" motd_ssh