Add Comments for check_if_running_as_root()
parent
4488a5c20b
commit
9bfbc5df76
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue