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:
parent
ee2c2a2cbc
commit
ece376f159
2 changed files with 5 additions and 4 deletions
|
@ -24,7 +24,7 @@
|
||||||
"fr": "Choisissez un domaine pour Jenkins"
|
"fr": "Choisissez un domaine pour Jenkins"
|
||||||
},
|
},
|
||||||
"example": "domain.org",
|
"example": "domain.org",
|
||||||
"default": "sous.crudelis-test4.fr"
|
"default": "crudelis-test4.fr"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
"fr": "Choisissez un path pour Jenkins"
|
"fr": "Choisissez un path pour Jenkins"
|
||||||
},
|
},
|
||||||
"example": "/jenkins",
|
"example": "/jenkins",
|
||||||
"default": "/"
|
"default": "/jenkins"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
|
|
|
@ -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 update
|
||||||
sudo apt-get install jenkins -y
|
sudo apt-get install jenkins -y
|
||||||
|
|
||||||
|
sudo sed -i "s/^HTTP_PORT=.*/HTTP_PORT=$port/g" /etc/default/jenkins
|
||||||
|
|
||||||
if [[ "$path" != "/" ]];
|
if [[ "$path" != "/" ]];
|
||||||
then
|
then
|
||||||
# $ means 'process only the last line'
|
# $ 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
|
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
|
sudo sed -i "s/-Djava.awt.headless=true/& -Djenkins.install.runSetupWizard=false/g" /etc/default/jenkins
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue