更新 cns/cns.sh
This commit is contained in:
+2
-2
@@ -97,7 +97,7 @@ InstallFiles() {
|
||||
}'`
|
||||
}
|
||||
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
|
||||
$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
|
||||
@@ -131,7 +131,7 @@ Install() {
|
||||
\r cns udp flag:\033[35G${cns_udp_flag:-httpUDP}
|
||||
\r cns encrypt password:\033[35G${cns_encrypt_password}
|
||||
\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() {
|
||||
|
||||
Reference in New Issue
Block a user