You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update install script to allow overwriting parameters
The latest version of the plugin introduces support for public cloud
setups. This is the behavior by default, this change adds parameters to
change the behavior (this needs to be used in the private cloud stack).
Copy file name to clipboardexpand all lines: Containers/InstallPrivateCloudPlugin.ps1
+42-9
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,19 @@
1
-
#The enable-privilege function was taken from the Windows PowerShell Cookbook and made publically available via this URL: http://www.leeholmes.com/blog/2010/09/24/adjusting-token-privileges-in-powershell/
1
+
#This script is for testing purposes; The below registration is being added to the manifest.
2
2
3
-
# Run this script on the Container Host (Tenant) VM
4
-
5
-
param([switch]$remove)
3
+
param(
4
+
[switch]$remove,# remove the plugin
5
+
[parameter(Mandatory=$false)] [String]$addr,
6
+
[parameter(Mandatory=$false)] [int]$port,
7
+
[parameter(Mandatory=$false)] [String]$path,
8
+
[parameter(Mandatory=$false)] [String]$format
9
+
)
6
10
11
+
$agentpath=$path# gets overwritten later, but still keep it user-friendly
7
12
8
13
if(!$remove)
9
14
{
10
-
functionenable-privilege {
11
-
param(
15
+
functionenable-privilege {
16
+
param(
12
17
## The privilege to adjust. This set is taken from
0 commit comments