Fixed typo in server tools

This commit is contained in:
2021-01-16 02:08:37 +01:00
parent 482ae41455
commit 544fb8f2af
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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