diff --git a/scripts/install.ps1 b/scripts/install.ps1 index 7fc4c7c5a6..3ebab8bfb0 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -11,6 +11,10 @@ if(!(Test-Path -Path $outputDir )){ [string]$letsEncrypt = "n" [string]$domain = $( Read-Host "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com)" ) +if($domain -eq "") { + $domain = "localhost" +} + if($domain -ne "localhost") { $letsEncrypt = $( Read-Host "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n)" ) diff --git a/scripts/install.sh b/scripts/install.sh index 2c71c363fc..318f2727df 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -14,6 +14,11 @@ mkdir -p $OUTPUT_DIR LETS_ENCRYPT="n" read -p "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com): " DOMAIN +if [ "$DOMAIN" == "" ] +then + DOMAIN="localhost" +fi + if [ "$DOMAIN" != "localhost" ] then read -p "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): " LETS_ENCRYPT