Skip to content

Commit

Permalink
Add Comments for check_if_running_as_root()
Browse files Browse the repository at this point in the history
  • Loading branch information
tzwjkl committed Jun 7, 2020
1 parent 4488a5c commit 9bfbc5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions install-dat-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bfbc5d

Please sign in to comment.