Skip to content

Commit

Permalink
fix install mode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tzwjkl committed Jun 11, 2020
1 parent 8699dd7 commit b92ed19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion install-dat-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ download_geosite() {

rename_new() {
for DAT in 'geoip' 'geosite'; do
install "${V2RAY}$DAT.dat.new" "${V2RAY}$DAT.dat"
install -m 644 "${V2RAY}$DAT.dat.new" "${V2RAY}$DAT.dat"
rm "${V2RAY}$DAT.dat.new"
rm "${V2RAY}$DAT.dat.sha256sum.new"
done
Expand Down
6 changes: 3 additions & 3 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ install_file() {
if [[ "$NAME" == 'v2ray' ]] || [[ "$NAME" == 'v2ctl' ]]; then
install -m 755 "${TMP_DIRECTORY}$NAME" "/usr/local/bin/$NAME"
elif [[ "$NAME" == 'geoip.dat' ]] || [[ "$NAME" == 'geosite.dat' ]]; then
install "${TMP_DIRECTORY}$NAME" "/usr/local/lib/v2ray/$NAME"
install -m 644 "${TMP_DIRECTORY}$NAME" "/usr/local/lib/v2ray/$NAME"
fi
}

Expand Down Expand Up @@ -376,8 +376,8 @@ install_startup_service_file() {
echo 'error: Failed to start service file download! Please check your network or try again.'
exit 1
fi
install "${TMP_DIRECTORY}systemd/system/v2ray.service" /etc/systemd/system/v2ray.service
install "${TMP_DIRECTORY}systemd/system/[email protected]" /etc/systemd/system/[email protected]
install -m 644 "${TMP_DIRECTORY}systemd/system/v2ray.service" /etc/systemd/system/v2ray.service
install -m 644 "${TMP_DIRECTORY}systemd/system/[email protected]" /etc/systemd/system/[email protected]
SYSTEMD='1'
fi
}
Expand Down

0 comments on commit b92ed19

Please sign in to comment.