|
|
@ -20,22 +20,22 @@ cmd="apt-get" |
|
|
|
sys_bit=$(uname -m) |
|
|
|
sys_bit=$(uname -m) |
|
|
|
|
|
|
|
|
|
|
|
case $sys_bit in |
|
|
|
case $sys_bit in |
|
|
|
i[36]86) |
|
|
|
# i[36]86) |
|
|
|
v2ray_bit="32" |
|
|
|
# v2ray_bit="32" |
|
|
|
caddy_arch="386" |
|
|
|
# caddy_arch="386" |
|
|
|
;; |
|
|
|
# ;; |
|
|
|
'amd64' | x86_64) |
|
|
|
'amd64' | x86_64) |
|
|
|
v2ray_bit="64" |
|
|
|
v2ray_bit="64" |
|
|
|
caddy_arch="amd64" |
|
|
|
caddy_arch="amd64" |
|
|
|
;; |
|
|
|
;; |
|
|
|
*armv6*) |
|
|
|
# *armv6*) |
|
|
|
v2ray_bit="arm32-v6" |
|
|
|
# v2ray_bit="arm32-v6" |
|
|
|
caddy_arch="arm6" |
|
|
|
# caddy_arch="arm6" |
|
|
|
;; |
|
|
|
# ;; |
|
|
|
*armv7*) |
|
|
|
# *armv7*) |
|
|
|
v2ray_bit="arm32-v7a" |
|
|
|
# v2ray_bit="arm32-v7a" |
|
|
|
caddy_arch="arm7" |
|
|
|
# caddy_arch="arm7" |
|
|
|
;; |
|
|
|
# ;; |
|
|
|
*aarch64* | *armv8*) |
|
|
|
*aarch64* | *armv8*) |
|
|
|
v2ray_bit="arm64-v8a" |
|
|
|
v2ray_bit="arm64-v8a" |
|
|
|
caddy_arch="arm64" |
|
|
|
caddy_arch="arm64" |
|
|
@ -853,7 +853,7 @@ config() { |
|
|
|
# # systemctl start iptables |
|
|
|
# # systemctl start iptables |
|
|
|
# # systemctl start ip6tables |
|
|
|
# # systemctl start ip6tables |
|
|
|
# fi |
|
|
|
# fi |
|
|
|
|
|
|
|
|
|
|
|
# systemctl restart v2ray |
|
|
|
# systemctl restart v2ray |
|
|
|
do_service restart v2ray |
|
|
|
do_service restart v2ray |
|
|
|
backup_config |
|
|
|
backup_config |
|
|
|