diff --git a/bin/v-move-domain-and-database-to-account b/bin/v-move-domain-and-database-to-account index 4c2811de..d055e361 100644 --- a/bin/v-move-domain-and-database-to-account +++ b/bin/v-move-domain-and-database-to-account @@ -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