1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jenkins_ynh.git synced 2024-09-03 19:26:18 +02:00

[enh] set prefix

This commit is contained in:
Julien Malik 2014-12-16 08:14:48 +01:00
parent 929d05713c
commit 558bfc6da0

View file

@ -26,7 +26,14 @@ EOF
sudo apt-get update
sudo apt-get install jenkins -y
sudo service jenkins start
if [[ "$path" != "/" ]];
then
# $ means 'process only the last line'
sudo sed -i '$ s@--ajp13Port=$AJP_PORT@--ajp13Port=$AJP_PORT --prefix=$PREFIX@g' /etc/default/jenkins
fi
sudo service jenkins restart
sudo yunohost service add jenkins -l /var/log/jenkins/jenkins.log