Update vaultwarden-install.sh - minor edits

This commit is contained in:
tschettervictor
2024-09-29 16:53:45 -06:00
committed by GitHub
parent ebfd287eba
commit 87b2a64623

View File

@@ -1,12 +1,6 @@
#!/bin/sh
# Install Vaultwarden
# Check for Root Privileges
if ! [ $(id -u) = 0 ]; then
echo "This script must be run with root privileges"
exit 1
fi
APP_NAME="Vaultwarden"
ADMIN_TOKEN=$(openssl rand -base64 16)
HOST_NAME=""
@@ -19,6 +13,12 @@ DNS_TOKEN=""
CERT_EMAIL=""
PYTHON_VERSION="311"
# Check for Root Privileges
if ! [ $(id -u) = 0 ]; then
echo "This script must be run with root privileges"
exit 1
fi
# Variable Checks
if [ -z "${HOST_NAME}" ]; then
echo 'Configuration error: HOST_NAME must be set'