From 771e031ea3ef4694143dc6cb95ee2ba0ebc90816 Mon Sep 17 00:00:00 2001 From: Gianni Bitar Date: Thu, 11 Jul 2024 12:38:28 +0300 Subject: [PATCH] fix: Mac - Set ReleaseChannel In JumpCloud Password Manager script releaseChannel variable to public --- .../Mac - Set ReleaseChannel In JumpCloud Password Manager.md | 2 +- PowerShell/JumpCloud Commands Gallery/commands.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set ReleaseChannel In JumpCloud Password Manager.md b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set ReleaseChannel In JumpCloud Password Manager.md index 4dd2e540d..a3ac280bc 100644 --- a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set ReleaseChannel In JumpCloud Password Manager.md +++ b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set ReleaseChannel In JumpCloud Password Manager.md @@ -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 ------ diff --git a/PowerShell/JumpCloud Commands Gallery/commands.json b/PowerShell/JumpCloud Commands Gallery/commands.json index bd8c3ccd0..560ea955d 100644 --- a/PowerShell/JumpCloud Commands Gallery/commands.json +++ b/PowerShell/JumpCloud Commands Gallery/commands.json @@ -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." },