mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-11 09:30:00 +01:00
Update vaultwarden-install.sh - minor edits
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user