From 74f47ff8de4ce94193edf9e986264f29840866b5 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Sun, 29 Mar 2020 17:11:23 +0800 Subject: [PATCH] Determine the contents of the modular configuration file --- README.md | 20 ++++++++++---------- install-release.sh | 25 ++++++++++++------------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index ad5ea33..270eadf 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,16 @@ installed: /usr/local/lib/v2ray/v2ray installed: /usr/local/lib/v2ray/v2ctl installed: /usr/local/lib/v2ray/geoip.dat installed: /usr/local/lib/v2ray/geosite.dat -installed: /usr/local/etc/v2ray/0_log.json -installed: /usr/local/etc/v2ray/1_api.json -installed: /usr/local/etc/v2ray/2_dns.json -installed: /usr/local/etc/v2ray/3_routing.json -installed: /usr/local/etc/v2ray/4_policy.json -installed: /usr/local/etc/v2ray/5_inbounds.json -installed: /usr/local/etc/v2ray/6_outbounds.json -installed: /usr/local/etc/v2ray/7_transport.json -installed: /usr/local/etc/v2ray/8_stats.json -installed: /usr/local/etc/v2ray/9_reverse.json +installed: /usr/local/etc/v2ray/00_log.json +installed: /usr/local/etc/v2ray/01_api.json +installed: /usr/local/etc/v2ray/02_dns.json +installed: /usr/local/etc/v2ray/03_routing.json +installed: /usr/local/etc/v2ray/04_policy.json +installed: /usr/local/etc/v2ray/05_inbounds.json +installed: /usr/local/etc/v2ray/06_outbounds.json +installed: /usr/local/etc/v2ray/07_transport.json +installed: /usr/local/etc/v2ray/08_stats.json +installed: /usr/local/etc/v2ray/09_reverse.json installed: /var/log/v2ray/ installed: /etc/systemd/system/v2ray.service installed: /etc/systemd/system/v2ray@.service diff --git a/install-release.sh b/install-release.sh index b9108e3..5a35b14 100644 --- a/install-release.sh +++ b/install-release.sh @@ -331,9 +331,8 @@ installV2Ray(){ # Install V2Ray configuration file to /usr/local/etc/v2ray/ if [[ ! -d '/usr/local/etc/v2ray/' ]]; then install -d /usr/local/etc/v2ray/ - for BASE in 0_log 1_api 2_dns 3_routing 4_policy 5_inbounds 6_outbounds 7_transport 8_stats 9_reverse; do - echo '{' > "/usr/local/etc/v2ray/$BASE.json" - echo '}' >> "/usr/local/etc/v2ray/$BASE.json" + for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_reverse; do + echo '{}' > "/usr/local/etc/v2ray/$BASE.json" done fi @@ -500,16 +499,16 @@ main() { echo 'installed: /usr/local/lib/v2ray/v2ctl' echo 'installed: /usr/local/lib/v2ray/geoip.dat' echo 'installed: /usr/local/lib/v2ray/geosite.dat' - echo 'installed: /usr/local/etc/v2ray/0_log.json' - echo 'installed: /usr/local/etc/v2ray/1_api.json' - echo 'installed: /usr/local/etc/v2ray/2_dns.json' - echo 'installed: /usr/local/etc/v2ray/3_routing.json' - echo 'installed: /usr/local/etc/v2ray/4_policy.json' - echo 'installed: /usr/local/etc/v2ray/5_inbounds.json' - echo 'installed: /usr/local/etc/v2ray/6_outbounds.json' - echo 'installed: /usr/local/etc/v2ray/7_transport.json' - echo 'installed: /usr/local/etc/v2ray/8_stats.json' - echo 'installed: /usr/local/etc/v2ray/9_reverse.json' + echo 'installed: /usr/local/etc/v2ray/00_log.json' + echo 'installed: /usr/local/etc/v2ray/01_api.json' + echo 'installed: /usr/local/etc/v2ray/02_dns.json' + echo 'installed: /usr/local/etc/v2ray/03_routing.json' + echo 'installed: /usr/local/etc/v2ray/04_policy.json' + echo 'installed: /usr/local/etc/v2ray/05_inbounds.json' + echo 'installed: /usr/local/etc/v2ray/06_outbounds.json' + echo 'installed: /usr/local/etc/v2ray/07_transport.json' + echo 'installed: /usr/local/etc/v2ray/08_stats.json' + echo 'installed: /usr/local/etc/v2ray/09_reverse.json' echo 'installed: /var/log/v2ray/' echo 'installed: /etc/systemd/system/v2ray.service' echo 'installed: /etc/systemd/system/v2ray@.service'