-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NB-11852: Set ReleaseChannel In JumpCloud Password Manager command #586
Changes from 12 commits
2207f89
7f9aca5
f882502
c948526
b4036f8
779fd34
0142359
accbfb7
e7cf69a
dbba080
4be1aaf
d69dee6
08ec9d2
771e031
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#### Name | ||
|
||
Linux - Set JumpCloud Password Manager's Release Channel | v1.0 JCCG | ||
|
||
#### commandType | ||
|
||
linux | ||
|
||
#### Command | ||
|
||
``` | ||
#!/bin/bash | ||
|
||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public ON LINE 4 depending on your desired release channel | ||
|
||
RELEASE_CHANNEL="public" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can't expect admins to do the right thing, it would probably be a good idea to add a check to ensure that |
||
|
||
#------- Do not modify below this line ------ | ||
|
||
for user in $(awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534) print $1}' /etc/passwd); do | ||
if [[ -d /home/$user ]]; then | ||
BASE_PATH="/home/$user/.config/JumpCloud Password Manager" | ||
|
||
FILE_PATH="$BASE_PATH/data/daemon/releaseChannel.txt" | ||
|
||
mkdir -p "$(dirname "$FILE_PATH")" | ||
|
||
echo -n "$RELEASE_CHANNEL" >"$FILE_PATH" | ||
|
||
sudo chown -R $user:$user "$BASE_PATH" | ||
fi | ||
done | ||
``` | ||
|
||
#### Description | ||
|
||
This command will set the desired release channel for JumpCloud's Password Manager in application's directory. The relesase channel options are beta, dogfood and public. | ||
|
||
#### *Import This Command* | ||
|
||
To import this command into your JumpCloud tenant run the below command using the [JumpCloud PowerShell Module](https://github.com/TheJumpCloud/support/wiki/Installing-the-JumpCloud-PowerShell-Module) | ||
|
||
``` | ||
Import-JCCommand -URL "https://github.com/TheJumpCloud/support/blob/master/PowerShell/JumpCloud%20Commands%20Gallery/Linux%20Commands/Linux%20-%20Set%20ReleaseChannel%20In%20JumpCloud%20Password%20Manager.md" | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#### Name | ||
|
||
Mac - Set JumpCloud Password Manager Release Channel | v1.0 JCCG | ||
|
||
#### commandType | ||
|
||
mac | ||
|
||
#### Command | ||
|
||
``` | ||
#!/bin/bash | ||
|
||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public ON LINE 15 depending on your desired release channel | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LINE 15? |
||
RELEASE_CHANNEL="public" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can't expect admins to do the right thing, it would probably be a good idea to add a check to ensure that |
||
|
||
#------- Do not modify below this line ------ | ||
|
||
for user in $(dscl . list /Users | grep -vE 'root|daemon|nobody|^_'); do | ||
if [[ -d /Users/$user ]]; then | ||
BASE_PATH="/Users/$user/Library/Application Support/JumpCloud Password Manager" | ||
|
||
FILE_PATH="$BASE_PATH/data/daemon/releaseChannel.txt" | ||
|
||
mkdir -p "$(dirname "$FILE_PATH")" | ||
|
||
echo -n "$RELEASE_CHANNEL" >"$FILE_PATH" | ||
|
||
sudo chown -R $user "$BASE_PATH" | ||
fi | ||
done | ||
``` | ||
|
||
#### Description | ||
|
||
This command will set the desired release channel for JumpCloud's Password Manager in application's directory. The relesase channel options are beta, dogfood and public. | ||
|
||
#### *Import This Command* | ||
|
||
To import this command into your JumpCloud tenant run the below command using the [JumpCloud PowerShell Module](https://github.com/TheJumpCloud/support/wiki/Installing-the-JumpCloud-PowerShell-Module) | ||
|
||
``` | ||
Import-JCCommand -URL "https://github.com/TheJumpCloud/support/blob/master/PowerShell/JumpCloud%20Commands%20Gallery/Mac%20Commands/Mac%20-%20Set%20ReleaseChannel%20In%20JumpCloud%20Password%20Manager.md" | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#### Name | ||
|
||
Windows - Set JumpCloud Password Manager's Release Channel | v1.0 JCCG | ||
|
||
#### commandType | ||
|
||
windows | ||
|
||
#### Command | ||
|
||
``` | ||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public depending on your desired release channel | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are not noting the line here, and I think that's the correct way to tell customers what to do, since it's really easy to forget that we need to update that in the future. |
||
$RELEASE_CHANNEL = "public" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can't expect admins to do the right thing, it would probably be a good idea to add a check to ensure that |
||
|
||
#------- Do not modify below this line ------ | ||
|
||
$FILE_PATH = "$env:APPDATA\JumpCloud Password Manager\data\daemon\releaseChannel.txt" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
$directory = Split-Path $FILE_PATH | ||
if (-not (Test-Path $directory)) { | ||
New-Item -ItemType Directory -Path $directory -Force | ||
} | ||
Set-Content -Path $FILE_PATH -Value $RELEASE_CHANNEL -NoNewline | ||
``` | ||
|
||
#### Description | ||
|
||
This command will set the desired release channel for JumpCloud's Password Manager in application's directory. The relesase channel options are beta, dogfood and public. | ||
|
||
#### *Import This Command* | ||
|
||
To import this command into your JumpCloud tenant run the below command using the [JumpCloud PowerShell Module](https://github.com/TheJumpCloud/support/wiki/Installing-the-JumpCloud-PowerShell-Module) | ||
|
||
``` | ||
Import-JCCommand -URL "https://github.com/TheJumpCloud/support/blob/master/PowerShell/JumpCloud%20Commands%20Gallery/Windows%20Commands/Windows%20-%20Set%20ReleaseChannel%20In%20JumpCloud%20Password%20Manager.md" | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LINE 4? I think we should just say change the variable value. If you copy and paste this today, it's LINE 5