Skip to content

Commit 18e6712

Browse files
author
lerndevops
authored
Update installJenkins.sh
1 parent 79efe80 commit 18e6712

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/installJenkins.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ install_centos() {
2727
#install Jenkins
2828
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
2929
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
30-
yum install epel-release # repository that provides 'daemonize'
31-
yum install jenkins
30+
sudo yum install epel-release # repository that provides 'daemonize'
31+
sudo yum install jenkins
32+
sudo systemctl start jenkins
3233
}
3334

3435

0 commit comments

Comments
 (0)