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:
parent
63c3d5342c
commit
5d802cefd5
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -176,6 +176,10 @@ then
|
||||
elif [ "$1" == "stop" ]
|
||||
then
|
||||
dockerComposeDown
|
||||
elif [ "$1" == "updateconf" ]
|
||||
then
|
||||
dockerComposeDown
|
||||
update withpull
|
||||
elif [ "$1" == "updatedb" ]
|
||||
then
|
||||
updateDatabase
|
||||
|
Loading…
Reference in New Issue
Block a user