mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
* Update and rename bitwarden-rs.sh to vaultwarden.sh Since bitwarden_rs was renamed to vaultwarden and the docker bitwarden_rs image is now deprecated, I have changed everything to the new image and name. The changes include: - New script name - Added information on how to update to new image - Check if vaultwarden is already installed - Changed all file location / configs to vaultwarden - Changed docker image to vaultwarden Signed-off-by: Kevin Linder <kevin@linder-online.de> * Update vaultwarden.sh Signed-off-by: Kevin Linder <kevin@linder-online.de> * Update and rename bitwarden-rs_admin-panel.sh to vaultwarden_admin-panel.sh Updated to Vaultwarden Signed-off-by: Kevin Linder <kevin@linder-online.de> * Update vaultwarden.sh Signed-off-by: Kevin Linder <kevin@linder-online.de> * Update vaultwarden.sh Signed-off-by: Kevin Linder <kevin@linder-online.de> * Update vaultwarden.sh Signed-off-by: Kevin Linder <kevin@linder-online.de> * Update vaultwarden.sh Signed-off-by: Kevin Linder <kevin@linder-online.de> * Signed commit & small change in upgrade hint. Signed-off-by: Kevin Linder <kevin@linder-online.de> * Address all things that come to my mind Signed-off-by: szaimen <szaimen@e.mail.de> Co-authored-by: Daniel Hansson <github@hanssonit.se> Co-authored-by: szaimen <szaimen@e.mail.de>
61 lines
2.0 KiB
Bash
61 lines
2.0 KiB
Bash
#!/bin/bash
|
|
|
|
# T&M Hansson IT AB © - 2021, https://www.hanssonit.se/
|
|
|
|
true
|
|
SCRIPT_NAME="Bitwarden Menu"
|
|
# shellcheck source=lib.sh
|
|
source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
|
|
|
|
# Check for errors + debug code and abort if something isn't right
|
|
# 1 = ON
|
|
# 0 = OFF
|
|
DEBUG=0
|
|
debug_mode
|
|
|
|
# Must be root
|
|
root_check
|
|
|
|
# Set the startup switch
|
|
if [ -f "$SCRIPTS/nextcloud-startup-script.sh" ]
|
|
then
|
|
STARTUP_SWITCH="ON"
|
|
else
|
|
STARTUP_SWITCH="OFF"
|
|
fi
|
|
|
|
choice=$(whiptail --title "$TITLE" --checklist \
|
|
"Automatically configure and install the Bitwarden or configure some aspects of it.
|
|
$CHECKLIST_GUIDE\n\n$RUN_LATER_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
|
"Bitwarden " "(External password manager [4GB RAM] - subdomain required)" OFF \
|
|
"Bitwarden Registration" "(Enable or disable public user registration for Bitwarden)" OFF \
|
|
"Bitwarden Mail-Configuration" "(Configure the mailserver settings for Bitwarden)" OFF \
|
|
"Vaultwarden " "(Unofficial Bitwarden password manager - subdomain required)" OFF \
|
|
"Vaultwarden Admin-panel" "(Enable or disable the admin-panel for Vaultwarden)" OFF 3>&1 1>&2 2>&3)
|
|
|
|
case "$choice" in
|
|
*"Bitwarden "*)
|
|
print_text_in_color "$ICyan" "Downloading the Bitwarden script..."
|
|
run_script APP tmbitwarden
|
|
;;&
|
|
*"Bitwarden Registration"*)
|
|
print_text_in_color "$ICyan" "Downloading the Bitwarden Registration script..."
|
|
run_script APP bitwarden_registration
|
|
;;&
|
|
*"Bitwarden Mail-Configuration"*)
|
|
print_text_in_color "$ICyan" "Downloading the Bitwarden Mailconfig script..."
|
|
run_script APP bitwarden_mailconfig
|
|
;;&
|
|
*"Vaultwarden "*)
|
|
print_text_in_color "$ICyan" "Downloading the Vaultwarden script..."
|
|
run_script APP vaultwarden
|
|
;;&
|
|
*"Vaultwarden Admin-panel"*)
|
|
print_text_in_color "$ICyan" "Downloading the Vaultwarden Admin-panel script..."
|
|
run_script APP vaultwarden_admin-panel
|
|
;;&
|
|
*)
|
|
;;
|
|
esac
|
|
exit
|