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:
authorDaniel Hansson <github@hanssonit.se>2020-08-10 21:00:14 +0300
committerGitHub <noreply@github.com>2020-08-10 21:00:14 +0300
commitac8229432780e0ea418aedb1a0ed6d4a31e0ecf5 (patch)
tree37cb4acd8a1cc2a1357d996dfd73b71614d8dfa0 /apps/tmbitwarden.sh
parent34f58238c565b9b5d3a8c0b257cd328ae263ff03 (diff)
Make user Registration configurable (#1350)
Co-authored-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps/tmbitwarden.sh')
-rw-r--r--apps/tmbitwarden.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/tmbitwarden.sh b/apps/tmbitwarden.sh
index d1d20c41..31900bc4 100644
--- a/apps/tmbitwarden.sh
+++ b/apps/tmbitwarden.sh
@@ -22,7 +22,7 @@ cpu_check 2 Bitwarden
# Check if Bitwarden is already installed
print_text_in_color "$ICyan" "Checking if Bitwarden is already installed..."
-if [ "$(docker ps -a >/dev/null 2>&1 && echo yes || echo no)" == "yes" ]
+if is_docker_running
then
if docker ps -a --format '{{.Names}}' | grep -Eq "bitwarden";
then
@@ -84,7 +84,10 @@ check_command ./bitwarden.sh rebuild
check_command ./bitwarden.sh start
if check_command ./bitwarden.sh updatedb
then
-msg_box "Bitwarden was sucessfully installed! Please visit $(grep 'url:' /root/bwdata/config.yml | awk '{print$2}'):8443 to setup your account."
+msg_box "Bitwarden was sucessfully installed! Please visit $(grep 'url:' /root/bwdata/config.yml | awk '{print$2}'):8443 to setup your account.
+
+After the account it setup, please disable user registration by running sudo bash $SCRIPTS/menu.sh and choose:
+Additional Apps --> Bitwarden Registration"
else
msg_box "Bitwarden installation failed! We will now remove necessary configs to be able to run this script again"
rm -rf /root/bwdata/