diff --git a/scripts/bitwarden.ps1 b/scripts/bitwarden.ps1 index 984aa0b7c..a0e6f18ad 100644 --- a/scripts/bitwarden.ps1 +++ b/scripts/bitwarden.ps1 @@ -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." diff --git a/scripts/bitwarden.sh b/scripts/bitwarden.sh index fe46f6758..179c9de8c 100755 --- a/scripts/bitwarden.sh +++ b/scripts/bitwarden.sh @@ -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