check if user is root in v-make-ip-ssl

This commit is contained in:
myvesta 2020-08-02 01:46:38 +02:00 committed by GitHub
commit 2d8931e908
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,12 @@
# Variable&Function #
#----------------------------------------------------------#
whoami=$(whoami)
if [ "$whoami" != "root" ]; then
echo "You must be root to execute this script"
exit 1
fi
# Argument definition
user=$1
domain=$2