mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
check if user is root in v-move-domain-and-database-to-account
This commit is contained in:
parent
cd5ac56423
commit
c553aafbd1
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue