From a0a1c5af20ba83249fce9a60a5b9ae8c18f7cbed Mon Sep 17 00:00:00 2001 From: tzwjkl Date: Sat, 6 Jun 2020 15:29:44 +0800 Subject: [PATCH] Remove unnecessary permission changes. --- install-dat-release.sh | 2 +- install-release.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install-dat-release.sh b/install-dat-release.sh index ea6292c..e85b278 100644 --- a/install-dat-release.sh +++ b/install-dat-release.sh @@ -57,7 +57,7 @@ download_geosite() { rename_new() { for DAT in 'geoip' 'geosite'; do - install -m 755 "${V2RAY}$DAT.dat.new" "${V2RAY}$DAT.dat" + install "${V2RAY}$DAT.dat.new" "${V2RAY}$DAT.dat" rm "${V2RAY}$DAT.dat.new" rm "${V2RAY}$DAT.dat.sha256sum.new" done diff --git a/install-release.sh b/install-release.sh index 6b8ba40..b415eab 100644 --- a/install-release.sh +++ b/install-release.sh @@ -322,7 +322,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 -m 755 "${TMP_DIRECTORY}$NAME" "/usr/local/lib/v2ray/$NAME" + install "${TMP_DIRECTORY}$NAME" "/usr/local/lib/v2ray/$NAME" fi } @@ -368,8 +368,8 @@ install_startup_service_file() { echo 'error: Failed to start service file download! Please check your network or try again.' exit 1 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 + install "${TMP_DIRECTORY}systemd/system/v2ray.service" /etc/systemd/system/v2ray.service + install "${TMP_DIRECTORY}systemd/system/v2ray@.service" /etc/systemd/system/v2ray@.service SYSTEMD='1' fi }