Skip to content

Commit 89e77e3

Browse files
authored
bitwarden - add hint that you need to wait (#2004)
1 parent 573e7dc commit 89e77e3

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

apps/bitwarden_mailconfig.sh

+20-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,15 @@ fi
166166

167167
# Stop bitwarden
168168
systemctl stop bitwarden
169-
countdown "Waiting for Bitwarden to stop..." "30"
169+
while :
170+
do
171+
if systemctl status bitwarden | grep -q 'Active: active' > /dev/null 2>&1
172+
then
173+
sleep 3
174+
else
175+
break
176+
fi
177+
done
170178

171179
# Write to files
172180
# mailserver
@@ -195,7 +203,17 @@ check_command sed -i "s|^globalSettings__mail__smtp__password=.*|globalSettings_
195203
check_command sed -i "s|^adminSettings__admins=.*|adminSettings__admins=$ADMIN_ACCOUNT|g" "$BITWARDEN_HOME"/bwdata/env/global.override.env
196204

197205
# Start Bitwarden
198-
start_if_stopped bitwarden
206+
systemctl start bitwarden
207+
while :
208+
do
209+
if ! systemctl status bitwarden | grep -q 'Active: active' > /dev/null 2>&1
210+
then
211+
sleep 3
212+
else
213+
break
214+
fi
215+
done
216+
199217
msg_box "Your Bitwarden mailserver settings should be successfully changed by now.
200218
201219
If you experience any issues, please report them to $ISSUES"

apps/bitwarden_registration.sh

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ case "$choice" in
9292
check_command systemctl restart bitwarden
9393
fi
9494
;;
95+
"")
96+
exit
97+
;;
9598
*)
9699
;;
97100
esac
101+
102+
msg_box "Bitwarden is now restarting. This can take a few minutes. Please wait until it is done."

0 commit comments

Comments
 (0)