mirror of https://github.com/v2ray/v2ray-core
install more files
parent
1413bb2944
commit
b0a132596f
|
@ -191,15 +191,27 @@ startV2ray(){
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
installV2Ray(){
|
copyFile() {
|
||||||
# Install V2Ray binary to /usr/bin/v2ray
|
NAME=$1
|
||||||
mkdir -p /usr/bin/v2ray
|
ERROR=`cp "/tmp/v2ray/v2ray-${NEW_VER}-linux-${VDIS}/${NAME}" "/usr/bin/v2ray/${NAME}"`
|
||||||
ERROR=`cp "/tmp/v2ray/v2ray-${NEW_VER}-linux-${VDIS}/v2ray" "/usr/bin/v2ray/v2ray"`
|
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
colorEcho ${YELLOW} "${ERROR}"
|
colorEcho ${YELLOW} "${ERROR}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
chmod +x "/usr/bin/v2ray/v2ray"
|
}
|
||||||
|
|
||||||
|
makeExecutable() {
|
||||||
|
chmod +x "/usr/bin/v2ray/$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
installV2Ray(){
|
||||||
|
# Install V2Ray binary to /usr/bin/v2ray
|
||||||
|
mkdir -p /usr/bin/v2ray
|
||||||
|
copyFile v2ray
|
||||||
|
makeExecutable v2ray
|
||||||
|
copyFile v2ctl
|
||||||
|
makeExecutable v2ctl
|
||||||
|
copyFile geoip.dat
|
||||||
|
|
||||||
# Install V2Ray server config to /etc/v2ray
|
# Install V2Ray server config to /etc/v2ray
|
||||||
mkdir -p /etc/v2ray
|
mkdir -p /etc/v2ray
|
||||||
|
|
Loading…
Reference in New Issue