From 9bfbc5df76d56bc2b6aae440a32939e51beb394b Mon Sep 17 00:00:00 2001 From: tzwjkl Date: Mon, 8 Jun 2020 04:20:43 +0800 Subject: [PATCH] Add Comments for check_if_running_as_root() --- install-dat-release.sh | 1 + install-release.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/install-dat-release.sh b/install-dat-release.sh index 523a692..292b6a2 100644 --- a/install-dat-release.sh +++ b/install-dat-release.sh @@ -18,6 +18,7 @@ DOWNLOAD_LINK_GEOIP="https://github.com/v2ray/geoip/releases/latest/download/geo DOWNLOAD_LINK_GEOSITE="https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat" check_if_running_as_root() { + # If you want to run as another user, please modify $UID to be owned by this user if [ $UID != "0" ]; then echo "error: You must run this script as root!" exit 1 diff --git a/install-release.sh b/install-release.sh index 5a459f8..d4efa4d 100644 --- a/install-release.sh +++ b/install-release.sh @@ -13,6 +13,7 @@ # https://github.com/v2fly/fhs-install-v2ray/issues check_if_running_as_root() { + # If you want to run as another user, please modify $UID to be owned by this user if [ $UID != "0" ]; then echo "error: You must run this script as root!" exit 1