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

Update upgrade: zzzz

This commit is contained in:
Alexandre Aubin 2024-06-29 18:40:03 +02:00 committed by GitHub
parent a6f03c9965
commit 9efd4b8c6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,12 +19,6 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..."
# If overwrite_nginx doesn't exist, create it
if [ -z "${overwrite_nginx:-}" ]; then
overwrite_nginx=1
ynh_app_setting_set --app="$app" --key="overwrite_nginx" --value="$overwrite_nginx"
fi
# Remove the apt list entry for jenkins
if [ -e "/etc/apt/sources.list.d/jenkins.list" ]; then
ynh_secure_remove --file=/etc/apt/sources.list.d/jenkins.list
@ -84,10 +78,7 @@ done
#=================================================
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Overwrite the nginx configuration only if it's allowed
if [ "$overwrite_nginx" -eq 1 ]; then
ynh_add_nginx_config
fi
ynh_add_nginx_config
yunohost service add "$app" --description="Jenkins Continuous Integration Server"