Created
April 1, 2020 16:53
-
-
Save shahabedinh/4c28ab643db22f7560e7c00974752e45 to your computer and use it in GitHub Desktop.
Reset bitnami Jenkins Password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## SSH to server | |
# go to Jenkins home | |
cd /opt/bitnami/jenkins/jenkins_home | |
## Edit config.xml | |
### Set disableSignup to false: <disableSignup>false</disableSignup> | |
sudo sed -ic 's/\<disableSignup\>true\<\/disableSignup\>/\<disableSignup\>false\<\/disableSignup\>/' config.xml | |
## Restart the jenkins service | |
sudo /opt/bitnami/ctlscript.sh restart | |
## Sign up via the web interface | |
## Copy the user permissions for the default user and assign these to the newly signed up user | |
## Set disableSignup to true | |
sudo sed -ic 's/\<disableSignup\>false\<\/disableSignup\>/\<disableSignup\>true\<\/disableSignup\>/' config.xml | |
## Restart the jenkins service | |
sudo /opt/bitnami/ctlscript.sh restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment