check if user is root in v-get-database-credentials-of-domain

This commit is contained in:
myvesta 2020-08-02 01:49:03 +02:00 committed by GitHub
commit 186beba0e9
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
DOMAIN=$1
SUBFOLDER=''