Fixed typo in server tools
This commit is contained in:
1 parent
482ae41455
commit
544fb8f2af
3 files changed
+3
-3
No files matched your search
@@ -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