Skip to content

Commit

Permalink
root check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lozy committed Apr 4, 2020
1 parent aab9757 commit 0c29075
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
# -- Author: Lozy
#

# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use root to install"
exit 1
fi

REQUEST_SERVER="https://raw.github.com/Lozy/danted/master"
SCRIPT_SERVER="https://public.sockd.info"
SYSTEM_RECOGNIZE=""
Expand Down

0 comments on commit 0c29075

Please sign in to comment.