mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
downloadRunFile when updateself (#638)
* downloadRunFile when updateself * Download-Run-File when $updateself * Add updateconf function * Add --updaterun option * Typo * Typo
This commit is contained in:
parent
b1e8d16b9d
commit
81eeddd331
@ -7,6 +7,7 @@ param (
|
||||
[switch] $rebuild,
|
||||
[switch] $updateconf,
|
||||
[switch] $updatedb,
|
||||
[switch] $updaterun,
|
||||
[switch] $updateself,
|
||||
[switch] $help,
|
||||
[string] $output = ""
|
||||
@ -60,6 +61,7 @@ Available commands:
|
||||
-stop
|
||||
-update
|
||||
-updatedb
|
||||
-updaterun
|
||||
-updateself
|
||||
-updateconf
|
||||
-rebuild
|
||||
@ -135,6 +137,10 @@ elseif ($stop) {
|
||||
Check-Output-Dir-Exists
|
||||
Invoke-Expression "& `"$scriptsDir\run.ps1`" -stop -outputDir `"$output`" -coreVersion $coreVersion -webVersion $webVersion"
|
||||
}
|
||||
elseif ($updaterun) {
|
||||
Check-Output-Dir-Exists
|
||||
Download-Run-File
|
||||
}
|
||||
elseif ($updateself) {
|
||||
Download-Self
|
||||
Write-Line "Updated self."
|
||||
|
@ -83,6 +83,7 @@ restart
|
||||
stop
|
||||
update
|
||||
updatedb
|
||||
updaterun
|
||||
updateself
|
||||
updateconf
|
||||
rebuild
|
||||
@ -126,6 +127,10 @@ elif [ "$1" == "stop" ]
|
||||
then
|
||||
checkOutputDirExists
|
||||
$SCRIPTS_DIR/run.sh stop $OUTPUT $COREVERSION $WEBVERSION
|
||||
elif [ "$1" == "updaterun" ]
|
||||
then
|
||||
checkOutputDirExists
|
||||
downloadRunFile
|
||||
elif [ "$1" == "updateself" ]
|
||||
then
|
||||
downloadSelf && echo "Updated self." && exit
|
||||
|
Loading…
Reference in New Issue
Block a user