Skip to content

Commit

Permalink
fix: Mac - Set ReleaseChannel In JumpCloud Password Manager script re…
Browse files Browse the repository at this point in the history
…leaseChannel variable to public
  • Loading branch information
gbitarjc committed Jul 11, 2024
1 parent 08ec9d2 commit 771e031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mac
#!/bin/bash
# Set releaseChannel to beta OR dogfood OR public depending on your desired release channel
releaseChannel="dogfood"
releaseChannel="public"
#------- Do not modify below this line ------
Expand Down
2 changes: 1 addition & 1 deletion PowerShell/JumpCloud Commands Gallery/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
{
"name": "Mac - Set JumpCloud Password Manager Release Channel | v1.0 JCCG",
"type": "mac",
"command": "#!/bin/bash\n\n# Set releaseChannel to beta OR dogfood OR public depending on your desired release channel\nreleaseChannel=\"dogfood\"\n\n#------- Do not modify below this line ------\n\nallowed_values=(\"beta\" \"dogfood\" \"public\")\n\nif [[ ! \" ${allowed_values[@]} \" =~ \" $releaseChannel \" ]]; then\n echo \"Error: Variable \\$releaseChannel must be either 'beta', 'dogfood', or 'public'.\"\n exit 1\nfi\n\nfor user in $(dscl . list /Users | grep -vE 'root|daemon|nobody|^_'); do\n if [[ -d /Users/$user ]]; then\n basePath=\"/Users/$user/Library/Application Support/JumpCloud Password Manager\"\n\n filePath=\"$basePath/data/daemon/releaseChannel.txt\"\n\n mkdir -p \"$(dirname \"$filePath\")\"\n\n echo -n \"$releaseChannel\" >\"$filePath\"\n\n sudo chown -R $user \"$basePath\"\n fi\ndone",
"command": "#!/bin/bash\n\n# Set releaseChannel to beta OR dogfood OR public depending on your desired release channel\nreleaseChannel=\"public\"\n\n#------- Do not modify below this line ------\n\nallowed_values=(\"beta\" \"dogfood\" \"public\")\n\nif [[ ! \" ${allowed_values[@]} \" =~ \" $releaseChannel \" ]]; then\n echo \"Error: Variable \\$releaseChannel must be either 'beta', 'dogfood', or 'public'.\"\n exit 1\nfi\n\nfor user in $(dscl . list /Users | grep -vE 'root|daemon|nobody|^_'); do\n if [[ -d /Users/$user ]]; then\n basePath=\"/Users/$user/Library/Application Support/JumpCloud Password Manager\"\n\n filePath=\"$basePath/data/daemon/releaseChannel.txt\"\n\n mkdir -p \"$(dirname \"$filePath\")\"\n\n echo -n \"$releaseChannel\" >\"$filePath\"\n\n sudo chown -R $user \"$basePath\"\n fi\ndone",
"link": "https://github.com/TheJumpCloud/support/blob/master/PowerShell/JumpCloud%20Commands%20Gallery/Mac%20Commands/Mac%20-%20Set%20ReleaseChannel%20In%20JumpCloud%20Password%20Manager.md",
"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."
},
Expand Down

0 comments on commit 771e031

Please sign in to comment.