1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-06 01:08:21 +01:00

fix elastic upgrade script: check root user

This commit is contained in:
Sylvain 2018-11-20 14:43:55 +01:00
parent bf1a3ce913
commit 636e89f2e9

View File

@ -10,7 +10,7 @@
config() config()
{ {
if [ "$(whoami)" != "root" ] if [ "$(whoami)" = "root" ]
then then
echo "Please do not run this script as root, elevation will be prompted if needed." echo "Please do not run this script as root, elevation will be prompted if needed."
exit 1 exit 1