mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
allow bwdata to exist for loading ca-certs
This commit is contained in:
parent
6e92364475
commit
91765477c5
@ -65,7 +65,7 @@ function Check-Output-Dir-Exists {
|
||||
}
|
||||
|
||||
function Check-Output-Dir-Not-Exists {
|
||||
if (Test-Path -Path $output) {
|
||||
if (Test-Path -Path "$output\docker") {
|
||||
throw "Looks like Bitwarden is already installed at $output."
|
||||
}
|
||||
}
|
||||
@ -74,7 +74,7 @@ function Check-Output-Dir-Not-Exists {
|
||||
|
||||
if ($install) {
|
||||
Check-Output-Dir-Not-Exists
|
||||
New-Item -ItemType directory -Path $output | Out-Null
|
||||
New-Item -ItemType directory -Path $output -ErrorAction Ignore | Out-Null
|
||||
Download-Run-File
|
||||
Invoke-Expression "$scriptsDir\run.ps1 -install -outputDir $output -coreVersion $coreVersion -webVersion $webVersion"
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ function checkOutputDirExists() {
|
||||
}
|
||||
|
||||
function checkOutputDirNotExists() {
|
||||
if [ -d "$OUTPUT" ]
|
||||
if [ -d "$OUTPUT/docker" ]
|
||||
then
|
||||
echo "Looks like Bitwarden is already installed at $OUTPUT."
|
||||
exit 1
|
||||
@ -78,7 +78,7 @@ function checkOutputDirNotExists() {
|
||||
if [ "$1" == "install" ]
|
||||
then
|
||||
checkOutputDirNotExists
|
||||
mkdir $OUTPUT
|
||||
mkdir -p $OUTPUT
|
||||
downloadRunFile
|
||||
$SCRIPTS_DIR/run.sh install $OUTPUT $COREVERSION $WEBVERSION
|
||||
elif [ "$1" == "start" -o "$1" == "restart" ]
|
||||
|
Loading…
Reference in New Issue
Block a user