mirror of
https://github.com/YunoHost-Apps/jenkins_ynh.git
synced 2024-09-03 19:26:18 +02:00
Update upgrade
This commit is contained in:
parent
f04f991172
commit
d6e6ba1e91
1 changed files with 4 additions and 1 deletions
|
@ -5,11 +5,14 @@ domain=$(sudo yunohost app setting jenkins domain)
|
||||||
path=$(sudo yunohost app setting jenkins path)
|
path=$(sudo yunohost app setting jenkins path)
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
is_public=$(sudo yunohost app setting jenkins is_public)
|
is_public=$(sudo yunohost app setting jenkins is_public)
|
||||||
|
port=$(sudo yunohost app setting jenkins port)
|
||||||
|
|
||||||
|
sudo sed -i "/HTTP_PORT=.*/aHTTP_PORT=$port" /etc/default/jenkins
|
||||||
|
|
||||||
sed -i "s@YNH_LOCATION@$path@g" ../conf/nginx.conf
|
sed -i "s@YNH_LOCATION@$path@g" ../conf/nginx.conf
|
||||||
|
sed -i "s@YNH_PORT@$port@g" ../conf/nginx.conf
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jenkins.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jenkins.conf
|
||||||
|
|
||||||
|
|
||||||
if [ "$is_public" = "Yes" ];
|
if [ "$is_public" = "Yes" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting jenkins unprotected_uris -v "/"
|
sudo yunohost app setting jenkins unprotected_uris -v "/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue