Fixed typo in server tools
This commit is contained in:
@@ -7,7 +7,7 @@ if [ ! -f "$(which uuidgen 2> /dev/null)" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${systemctl is-active --quiet mongod}" != "active" ]; then
|
if [ "$(systemctl is-active mongod)" != "active" ]; then
|
||||||
echo "ERROR: mongoDB service is not running"
|
echo "ERROR: mongoDB service is not running"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[ -z $1 ] && echo "Usage: $0 <username>" && exit 1
|
[ -z $1 ] && echo "Usage: $0 <username>" && exit 1
|
||||||
|
|
||||||
if [ "${systemctl is-active --quiet mongod}" != "active" ]; then
|
if [ "$(systemctl is-active mongod)" != "active" ]; then
|
||||||
echo "ERROR: mongoDB service is not running"
|
echo "ERROR: mongoDB service is not running"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[ -z $1 ] || [ -z $2 ] && echo "Usage: $0 <username> <password>" && exit 1
|
[ -z $1 ] || [ -z $2 ] && echo "Usage: $0 <username> <password>" && exit 1
|
||||||
|
|
||||||
if [ "${systemctl is-active --quiet mongod}" != "active" ]; then
|
if [ "$(systemctl is-active mongod)" != "active" ]; then
|
||||||
echo "ERROR: mongoDB service is not running"
|
echo "ERROR: mongoDB service is not running"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user