更新 cns/cns.sh

This commit is contained in:
2025-09-12 10:48:37 +00:00
parent 1cbfa81bb4
commit 71c586828d
+2 -2
View File
@@ -97,7 +97,7 @@ InstallFiles() {
}'` }'`
} }
EOF EOF
chmod -R +rwx "$cns_install_dir" /etc/init.d/cns chmod -R +rwx "$cns_install_dir" /etc/init.d/Acns
if type systemctl && [ -z "$(systemctl --failed|grep -q 'Host is down')" ]; then if type systemctl && [ -z "$(systemctl --failed|grep -q 'Host is down')" ]; then
$download_tool_cmd /lib/systemd/system/cns.service https://git.dihe.moe/dongge/cns_xbl/raw/branch/main/cns/cns.service || Error "cns.service download failed." $download_tool_cmd /lib/systemd/system/cns.service https://git.dihe.moe/dongge/cns_xbl/raw/branch/main/cns/cns.service || Error "cns.service download failed."
chmod +rwx /lib/systemd/system/cns.service chmod +rwx /lib/systemd/system/cns.service
@@ -131,7 +131,7 @@ Install() {
\r cns udp flag:\033[35G${cns_udp_flag:-httpUDP} \r cns udp flag:\033[35G${cns_udp_flag:-httpUDP}
\r cns encrypt password:\033[35G${cns_encrypt_password} \r cns encrypt password:\033[35G${cns_encrypt_password}
\r cns tls server port:\033[35G${cns_tls_port} \r cns tls server port:\033[35G${cns_tls_port}
\r`[ -f /etc/init.d/Acns ] && /etc/init.d/cns usage || \"$cns_install_dir/cns.init\" usage`\033[0m" \r`[ -f /etc/init.d/Acns ] && /etc/init.d/Acns usage || \"$cns_install_dir/cns.init\" usage`\033[0m"
} }
Uninstall() { Uninstall() {