diff --git a/scripts/bitwarden.ps1 b/scripts/bitwarden.ps1 index e18b6ef9e7..f7a4d52874 100644 --- a/scripts/bitwarden.ps1 +++ b/scripts/bitwarden.ps1 @@ -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" diff --git a/scripts/bitwarden.sh b/scripts/bitwarden.sh index 40041da42c..27ac460906 100755 --- a/scripts/bitwarden.sh +++ b/scripts/bitwarden.sh @@ -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 diff --git a/scripts/run.ps1 b/scripts/run.ps1 index fe6a7b0ca4..363fce14c3 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -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 } diff --git a/scripts/run.sh b/scripts/run.sh index 5cb461a3b1..974ea104d0 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -176,6 +176,10 @@ then elif [ "$1" == "stop" ] then dockerComposeDown +elif [ "$1" == "updateconf" ] +then + dockerComposeDown + update withpull elif [ "$1" == "updatedb" ] then updateDatabase