Skip to content

Commit

Permalink
[FIXED JENKINS-33857] Make initial admin password file end with a new…
Browse files Browse the repository at this point in the history
…line.

This makes it a tiny bit more convenient to `cat` the file and copy the password
to your clipboard.  Previously, the file did not have a line ending, so the
password would run into your shell prompt, making copying the text harder.
  • Loading branch information
orrc committed Mar 31, 2016
1 parent ef08dc1 commit 3659e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/jenkins/install/SetupWizard.java
Expand Up @@ -71,7 +71,7 @@ public SetupWizard(Jenkins j) throws IOException, InterruptedException {
// JENKINS-33599 - write to a file in the jenkins home directory
// most native packages of Jenkins creates a machine user account 'jenkins' to run Jenkins,
// and use group 'jenkins' for admins. So we allo groups to read this file
iapf.write(randomUUID, "UTF-8");
iapf.write(randomUUID + System.lineSeparator(), "UTF-8");
iapf.chmod(0640);

// Lock Jenkins down:
Expand Down

0 comments on commit 3659e9c

Please sign in to comment.