mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
check if user is root in v-migrate-site-to-https
This commit is contained in:
parent
dd9f963b6f
commit
cd5ac56423
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
|
||||
domain=$1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue