mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 22:34:05 -07:00
check if user is root in v-get-database-credentials-of-domain
This commit is contained in:
parent
9b26e48029
commit
186beba0e9
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,12 @@
|
||||||
# Variable&Function #
|
# Variable&Function #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
whoami=$(whoami)
|
||||||
|
if [ "$whoami" != "root" ]; then
|
||||||
|
echo "You must be root to execute this script"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Argument definition
|
# Argument definition
|
||||||
DOMAIN=$1
|
DOMAIN=$1
|
||||||
SUBFOLDER=''
|
SUBFOLDER=''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue