mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
check if user is root in v-make-ip-ssl
This commit is contained in:
parent
62b0d755ad
commit
2d8931e908
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
user=$1
|
||||
domain=$2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue