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

Install sous-dossier

This commit is contained in:
Maniack Crudelis 2016-11-30 17:43:02 +01:00
parent ee2c2a2cbc
commit ece376f159
2 changed files with 5 additions and 4 deletions

View file

@ -24,7 +24,7 @@
"fr": "Choisissez un domaine pour Jenkins"
},
"example": "domain.org",
"default": "sous.crudelis-test4.fr"
"default": "crudelis-test4.fr"
},
{
"name": "path",
@ -33,7 +33,7 @@
"fr": "Choisissez un path pour Jenkins"
},
"example": "/jenkins",
"default": "/"
"default": "/jenkins"
},
{
"name": "is_public",

View file

@ -26,12 +26,13 @@ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sour
sudo apt-get update
sudo apt-get install jenkins -y
sudo sed -i "s/^HTTP_PORT=.*/HTTP_PORT=$port/g" /etc/default/jenkins
if [[ "$path" != "/" ]];
then
# $ means 'process only the last line'
sudo sed -i '$ s@--httpPort=$HTTP_PORT"@--httpPort=$HTTP_PORT" --prefix=$PREFIX@g' /etc/default/jenkins
sudo sed -i "$ s@--httpPort=\$HTTP_PORT@& --prefix=$path@g" /etc/default/jenkins
fi
sudo sed -i "s/HTTP_PORT=.*/HTTP_PORT=$port/g" /etc/default/jenkins
sudo sed -i "s/-Djava.awt.headless=true/& -Djenkins.install.runSetupWizard=false/g" /etc/default/jenkins