1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-01 17:56:49 +02:00

New updateconf scripts method (#575)

* New updateconf scripts method

* New updateconf scripts method

* New updateconf scripts method

* New updateconf scripts method
This commit is contained in:
Mart124 2019-10-17 21:10:28 +02:00 committed by Kyle Spearrin
parent 63c3d5342c
commit 5d802cefd5
4 changed files with 18 additions and 0 deletions

View File

@ -5,6 +5,7 @@ param (
[switch] $stop,
[switch] $update,
[switch] $rebuild,
[switch] $updateconf,
[switch] $updatedb,
[switch] $updateself,
[string] $output = ""
@ -102,6 +103,10 @@ elseif ($rebuild) {
Check-Output-Dir-Exists
Invoke-Expression "& `"$scriptsDir\run.ps1`" -rebuild -outputDir `"$output`" -coreVersion $coreVersion -webVersion $webVersion"
}
elseif ($updateconf) {
Check-Output-Dir-Exists
Invoke-Expression "& `"$scriptsDir\run.ps1`" -updateconf -outputDir `"$output`" -coreVersion $coreVersion -webVersion $webVersion"
}
elseif ($updatedb) {
Check-Output-Dir-Exists
Invoke-Expression "& `"$scriptsDir\run.ps1`" -updatedb -outputDir `"$output`" -coreVersion $coreVersion -webVersion $webVersion"

View File

@ -94,6 +94,10 @@ elif [ "$1" == "rebuild" ]
then
checkOutputDirExists
$SCRIPTS_DIR/run.sh rebuild $OUTPUT $COREVERSION $WEBVERSION
elif [ "$1" == "updateconf" ]
then
checkOutputDirExists
$SCRIPTS_DIR/run.sh updateconf $OUTPUT $COREVERSION $WEBVERSION
elif [ "$1" == "updatedb" ]
then
checkOutputDirExists

View File

@ -7,6 +7,7 @@ param (
[switch] $restart,
[switch] $stop,
[switch] $pull,
[switch] $updateconf,
[switch] $updatedb,
[switch] $update
)
@ -169,6 +170,10 @@ elseif ($pull) {
elseif ($stop) {
Docker-Compose-Down
}
elseif ($updateconf) {
Docker-Compose-Down
Update -withpull
}
elseif ($updatedb) {
Update-Database
}

View File

@ -176,6 +176,10 @@ then
elif [ "$1" == "stop" ]
then
dockerComposeDown
elif [ "$1" == "updateconf" ]
then
dockerComposeDown
update withpull
elif [ "$1" == "updatedb" ]
then
updateDatabase