diff options
author | szaimen <szaimen@e.mail.de> | 2021-07-09 15:47:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 15:47:18 +0300 |
commit | 89e77e3d817bd42ace213a66e09b0c3bb25d68d8 (patch) | |
tree | 49819d0675eee7daceff4e825566c3dd445cee8e /apps | |
parent | 573e7dc6c6be3ea493ae5ec84325a8ae635609a3 (diff) |
bitwarden - add hint that you need to wait (#2004)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/bitwarden_mailconfig.sh | 22 | ||||
-rw-r--r-- | apps/bitwarden_registration.sh | 5 |
2 files changed, 25 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" diff --git a/apps/bitwarden_registration.sh b/apps/bitwarden_registration.sh index 4866ebce..da977abb 100644 --- a/apps/bitwarden_registration.sh +++ b/apps/bitwarden_registration.sh @@ -92,6 +92,11 @@ case "$choice" in check_command systemctl restart bitwarden fi ;; + "") + exit + ;; *) ;; esac + +msg_box "Bitwarden is now restarting. This can take a few minutes. Please wait until it is done." |