From 544fb8f2af3ca312bd46ac324eac7b7240662ed6 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Sat, 16 Jan 2021 02:08:37 +0100 Subject: [PATCH] Fixed typo in server tools --- Server/Tools/adduser | 2 +- Server/Tools/del-user | 2 +- Server/Tools/reset-user-password | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/Tools/adduser b/Server/Tools/adduser index b0915c9..43507bd 100644 --- a/Server/Tools/adduser +++ b/Server/Tools/adduser @@ -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 diff --git a/Server/Tools/del-user b/Server/Tools/del-user index 60b2a7a..3e0e064 100755 --- a/Server/Tools/del-user +++ b/Server/Tools/del-user @@ -2,7 +2,7 @@ [ -z $1 ] && echo "Usage: $0 " && 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 diff --git a/Server/Tools/reset-user-password b/Server/Tools/reset-user-password index 0bd1e0f..a3f5829 100755 --- a/Server/Tools/reset-user-password +++ b/Server/Tools/reset-user-password @@ -2,7 +2,7 @@ [ -z $1 ] || [ -z $2 ] && echo "Usage: $0 " && 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