Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2021-07-09 15:47:18 +0300
committerGitHub <noreply@github.com>2021-07-09 15:47:18 +0300
commit89e77e3d817bd42ace213a66e09b0c3bb25d68d8 (patch)
tree49819d0675eee7daceff4e825566c3dd445cee8e /apps/bitwarden_mailconfig.sh
parent573e7dc6c6be3ea493ae5ec84325a8ae635609a3 (diff)
bitwarden - add hint that you need to wait (#2004)
Diffstat (limited to 'apps/bitwarden_mailconfig.sh')
-rw-r--r--apps/bitwarden_mailconfig.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/apps/bitwarden_mailconfig.sh b/apps/bitwarden_mailconfig.sh
index 63ed93e0..6ed75b7e 100644
--- a/apps/bitwarden_mailconfig.sh
+++ b/apps/bitwarden_mailconfig.sh
@@ -166,7 +166,15 @@ fi
# Stop bitwarden
systemctl stop bitwarden
-countdown "Waiting for Bitwarden to stop..." "30"
+while :
+do
+ if systemctl status bitwarden | grep -q 'Active: active' > /dev/null 2>&1
+ then
+ sleep 3
+ else
+ break
+ fi
+done
# Write to files
# mailserver
@@ -195,7 +203,17 @@ check_command sed -i "s|^globalSettings__mail__smtp__password=.*|globalSettings_
check_command sed -i "s|^adminSettings__admins=.*|adminSettings__admins=$ADMIN_ACCOUNT|g" "$BITWARDEN_HOME"/bwdata/env/global.override.env
# Start Bitwarden
-start_if_stopped bitwarden
+systemctl start bitwarden
+while :
+do
+ if ! systemctl status bitwarden | grep -q 'Active: active' > /dev/null 2>&1
+ then
+ sleep 3
+ else
+ break
+ fi
+done
+
msg_box "Your Bitwarden mailserver settings should be successfully changed by now.
If you experience any issues, please report them to $ISSUES"