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

Update install

This commit is contained in:
Développeur égaré 2015-02-27 14:36:54 +01:00
parent 4e068ed1b7
commit 98eae383c0

View file

@ -4,10 +4,11 @@
domain=$1
path=$2
is_public=$3
port=$4
sudo yunohost app checkport 8080
sudo yunohost app checkport $port
if [[ ! $? -eq 0 ]]; then
echo "Port 8080 is not available. Aborting..."
echo "Port $port is not available. Aborting..."
exit 1
fi
@ -32,6 +33,8 @@ 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 sed -i 's@@$path@g' /etc/default/jenkins
sudo sed -i "/HTTP_PORT=.*/aHTTP_PORT=$port" /etc/default/jenkins
sudo service jenkins restart
@ -39,6 +42,7 @@ sudo yunohost service add jenkins -l /var/log/jenkins/jenkins.log
echo "Nginx configuration (sso disabled)..."
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 yunohost app setting jenkins is_public -v $is_public