Determine the contents of the modular configuration file

pull/1/head
Dct Mei 2020-03-29 17:11:23 +08:00
parent 8c5d16c224
commit 74f47ff8de
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
2 changed files with 22 additions and 23 deletions

View File

@ -9,16 +9,16 @@ installed: /usr/local/lib/v2ray/v2ray
installed: /usr/local/lib/v2ray/v2ctl installed: /usr/local/lib/v2ray/v2ctl
installed: /usr/local/lib/v2ray/geoip.dat installed: /usr/local/lib/v2ray/geoip.dat
installed: /usr/local/lib/v2ray/geosite.dat installed: /usr/local/lib/v2ray/geosite.dat
installed: /usr/local/etc/v2ray/0_log.json installed: /usr/local/etc/v2ray/00_log.json
installed: /usr/local/etc/v2ray/1_api.json installed: /usr/local/etc/v2ray/01_api.json
installed: /usr/local/etc/v2ray/2_dns.json installed: /usr/local/etc/v2ray/02_dns.json
installed: /usr/local/etc/v2ray/3_routing.json installed: /usr/local/etc/v2ray/03_routing.json
installed: /usr/local/etc/v2ray/4_policy.json installed: /usr/local/etc/v2ray/04_policy.json
installed: /usr/local/etc/v2ray/5_inbounds.json installed: /usr/local/etc/v2ray/05_inbounds.json
installed: /usr/local/etc/v2ray/6_outbounds.json installed: /usr/local/etc/v2ray/06_outbounds.json
installed: /usr/local/etc/v2ray/7_transport.json installed: /usr/local/etc/v2ray/07_transport.json
installed: /usr/local/etc/v2ray/8_stats.json installed: /usr/local/etc/v2ray/08_stats.json
installed: /usr/local/etc/v2ray/9_reverse.json installed: /usr/local/etc/v2ray/09_reverse.json
installed: /var/log/v2ray/ installed: /var/log/v2ray/
installed: /etc/systemd/system/v2ray.service installed: /etc/systemd/system/v2ray.service
installed: /etc/systemd/system/v2ray@.service installed: /etc/systemd/system/v2ray@.service

View File

@ -331,9 +331,8 @@ installV2Ray(){
# Install V2Ray configuration file to /usr/local/etc/v2ray/ # Install V2Ray configuration file to /usr/local/etc/v2ray/
if [[ ! -d '/usr/local/etc/v2ray/' ]]; then if [[ ! -d '/usr/local/etc/v2ray/' ]]; then
install -d /usr/local/etc/v2ray/ 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 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" echo '{}' > "/usr/local/etc/v2ray/$BASE.json"
echo '}' >> "/usr/local/etc/v2ray/$BASE.json"
done done
fi fi
@ -500,16 +499,16 @@ main() {
echo 'installed: /usr/local/lib/v2ray/v2ctl' echo 'installed: /usr/local/lib/v2ray/v2ctl'
echo 'installed: /usr/local/lib/v2ray/geoip.dat' echo 'installed: /usr/local/lib/v2ray/geoip.dat'
echo 'installed: /usr/local/lib/v2ray/geosite.dat' echo 'installed: /usr/local/lib/v2ray/geosite.dat'
echo 'installed: /usr/local/etc/v2ray/0_log.json' echo 'installed: /usr/local/etc/v2ray/00_log.json'
echo 'installed: /usr/local/etc/v2ray/1_api.json' echo 'installed: /usr/local/etc/v2ray/01_api.json'
echo 'installed: /usr/local/etc/v2ray/2_dns.json' echo 'installed: /usr/local/etc/v2ray/02_dns.json'
echo 'installed: /usr/local/etc/v2ray/3_routing.json' echo 'installed: /usr/local/etc/v2ray/03_routing.json'
echo 'installed: /usr/local/etc/v2ray/4_policy.json' echo 'installed: /usr/local/etc/v2ray/04_policy.json'
echo 'installed: /usr/local/etc/v2ray/5_inbounds.json' echo 'installed: /usr/local/etc/v2ray/05_inbounds.json'
echo 'installed: /usr/local/etc/v2ray/6_outbounds.json' echo 'installed: /usr/local/etc/v2ray/06_outbounds.json'
echo 'installed: /usr/local/etc/v2ray/7_transport.json' echo 'installed: /usr/local/etc/v2ray/07_transport.json'
echo 'installed: /usr/local/etc/v2ray/8_stats.json' echo 'installed: /usr/local/etc/v2ray/08_stats.json'
echo 'installed: /usr/local/etc/v2ray/9_reverse.json' echo 'installed: /usr/local/etc/v2ray/09_reverse.json'
echo 'installed: /var/log/v2ray/' echo 'installed: /var/log/v2ray/'
echo 'installed: /etc/systemd/system/v2ray.service' echo 'installed: /etc/systemd/system/v2ray.service'
echo 'installed: /etc/systemd/system/v2ray@.service' echo 'installed: /etc/systemd/system/v2ray@.service'