check if user is root in v-move-domain-and-database-to-account

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

View file

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