Add Comments for check_if_running_as_root()

pull/5/head
tzwjkl 2020-06-08 04:20:43 +08:00
parent 4488a5c20b
commit 9bfbc5df76
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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