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