Minor adjustment
parent
025993ece6
commit
671ef064d6
|
@ -335,6 +335,7 @@ installV2Ray(){
|
|||
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
|
||||
CONFDIR=yes
|
||||
fi
|
||||
|
||||
# Used to store V2Ray log files
|
||||
|
@ -344,6 +345,7 @@ installV2Ray(){
|
|||
else
|
||||
install -d -o nobody -g nobody /var/log/v2ray/
|
||||
fi
|
||||
LOG=yes
|
||||
fi
|
||||
}
|
||||
installStartupServiceFile() {
|
||||
|
@ -362,6 +364,7 @@ installStartupServiceFile() {
|
|||
fi
|
||||
install -m 755 "${TMP_DIRECTORY}systemd/system/v2ray.service" /etc/systemd/system/v2ray.service
|
||||
install -m 755 "${TMP_DIRECTORY}systemd/system/v2ray@.service" /etc/systemd/system/v2ray@.service
|
||||
SYSTEMD=yes
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -499,6 +502,7 @@ main() {
|
|||
echo 'installed: /usr/local/bin/v2ctl'
|
||||
echo 'installed: /usr/local/lib/v2ray/geoip.dat'
|
||||
echo 'installed: /usr/local/lib/v2ray/geosite.dat'
|
||||
if [[ -n "$CONFDIR" ]]; then
|
||||
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'
|
||||
|
@ -509,9 +513,14 @@ main() {
|
|||
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'
|
||||
fi
|
||||
if [[ -n "$LOG" ]]; then
|
||||
echo 'installed: /var/log/v2ray/'
|
||||
fi
|
||||
if [[ -n "$SYSTEMD" ]]; then
|
||||
echo 'installed: /etc/systemd/system/v2ray.service'
|
||||
echo 'installed: /etc/systemd/system/v2ray@.service'
|
||||
fi
|
||||
if [[ "$V2RAY_RUNNING" -ne '1' ]]; then
|
||||
echo 'Please execute the command: systemctl enable v2ray; systemctl start v2ray'
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue