mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
check if user is root in v-install-unsigned-ssl
This commit is contained in:
parent
59c5ff7412
commit
9b26e48029
1 changed files with 6 additions and 1 deletions
|
@ -5,11 +5,16 @@
|
|||
#
|
||||
# The function install unsigned SSL to domain
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
whoami=$(whoami)
|
||||
if [ "$whoami" != "root" ]; then
|
||||
echo "You must be root to execute this script"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Argument definition
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "usage: v-install-unsigned-ssl DOMAIN [RESTART]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue