mirror of
https://github.com/YunoHost-Apps/jenkins_ynh.git
synced 2024-09-03 19:26:18 +02:00
12 lines
323 B
Bash
12 lines
323 B
Bash
#!/bin/bash
|
|
|
|
# Retrieve arguments
|
|
domain=$(sudo yunohost app setting jenkins domain)
|
|
path=$(sudo yunohost app setting jenkins path)
|
|
path=${path%/}
|
|
|
|
sed -i "s@YNH_LOCATION@$path@g" ../conf/nginx.conf
|
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jenkins.conf
|
|
sudo service nginx reload
|
|
sudo yunohost app ssowatconf
|
|
|