#!/bin/sh : ${vaultwarden_username:='s-vaultwarden'} : ${vaultwarden_dbname:='vaultwarden'} : ${vaultwarden_dbhost:="$postgres_host"} : ${vaultwarden_fqdn:="$fqdn"} vaultwarden_dn="uid=${vaultwarden_username},${robots_basedn}" vaultwarden_local_username=$nginx_user vaultwarden_https_cert="${nginx_conf_dir}/vaultwarden.crt" vaultwarden_https_key="${nginx_conf_dir}/vaultwarden.key" vaultwarden_home=/usr/local/www/vaultwarden vaultwarden_port=8080 vaultwarden_client_keytab="${keytab_dir}/vaultwarden.client.keytab" pkg install -y \ vaultwarden \ ca_root_nss \ nginx # Create vaultwarden principal and keytab. ldap_add "$vaultwarden_dn" < /dev/null 2>&1 < /dev/null