mirror of
https://github.com/bitwarden/server.git
synced 2025-02-16 01:51:21 +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 {
|
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."
|
throw "Looks like Bitwarden is already installed at $output."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ function Check-Output-Dir-Not-Exists {
|
|||||||
|
|
||||||
if ($install) {
|
if ($install) {
|
||||||
Check-Output-Dir-Not-Exists
|
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
|
Download-Run-File
|
||||||
Invoke-Expression "$scriptsDir\run.ps1 -install -outputDir $output -coreVersion $coreVersion -webVersion $webVersion"
|
Invoke-Expression "$scriptsDir\run.ps1 -install -outputDir $output -coreVersion $coreVersion -webVersion $webVersion"
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ function checkOutputDirExists() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkOutputDirNotExists() {
|
function checkOutputDirNotExists() {
|
||||||
if [ -d "$OUTPUT" ]
|
if [ -d "$OUTPUT/docker" ]
|
||||||
then
|
then
|
||||||
echo "Looks like Bitwarden is already installed at $OUTPUT."
|
echo "Looks like Bitwarden is already installed at $OUTPUT."
|
||||||
exit 1
|
exit 1
|
||||||
@ -78,7 +78,7 @@ function checkOutputDirNotExists() {
|
|||||||
if [ "$1" == "install" ]
|
if [ "$1" == "install" ]
|
||||||
then
|
then
|
||||||
checkOutputDirNotExists
|
checkOutputDirNotExists
|
||||||
mkdir $OUTPUT
|
mkdir -p $OUTPUT
|
||||||
downloadRunFile
|
downloadRunFile
|
||||||
$SCRIPTS_DIR/run.sh install $OUTPUT $COREVERSION $WEBVERSION
|
$SCRIPTS_DIR/run.sh install $OUTPUT $COREVERSION $WEBVERSION
|
||||||
elif [ "$1" == "start" -o "$1" == "restart" ]
|
elif [ "$1" == "start" -o "$1" == "restart" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user