mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
check if user is root in v-install-wordpress
This commit is contained in:
parent
c553aafbd1
commit
59c5ff7412
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue