File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 166
166
167
167
# Stop bitwarden
168
168
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
170
178
171
179
# Write to files
172
180
# mailserver
@@ -195,7 +203,17 @@ check_command sed -i "s|^globalSettings__mail__smtp__password=.*|globalSettings_
195
203
check_command sed -i " s|^adminSettings__admins=.*|adminSettings__admins=$ADMIN_ACCOUNT |g" " $BITWARDEN_HOME " /bwdata/env/global.override.env
196
204
197
205
# 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
+
199
217
msg_box " Your Bitwarden mailserver settings should be successfully changed by now.
200
218
201
219
If you experience any issues, please report them to $ISSUES "
Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ case "$choice" in
92
92
check_command systemctl restart bitwarden
93
93
fi
94
94
;;
95
+ " " )
96
+ exit
97
+ ;;
95
98
* )
96
99
;;
97
100
esac
101
+
102
+ msg_box " Bitwarden is now restarting. This can take a few minutes. Please wait until it is done."
You can’t perform that action at this time.
0 commit comments