diff --git a/scripts/upgrade b/scripts/upgrade index afba219..97bcc06 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -161,11 +161,12 @@ ynh_script_progression --message="Disabling maintenance mode..." --weight=6 ynh_maintenance_mode_OFF #================================================= -# UPGRADE JENKINS-CLI.PHAR +# UPGRADE JENKINS-CLI.JAR #================================================= -ynh_script_progression --message="Upgrading jenkins-cli.phar..." +ynh_script_progression --message="Upgrading jenkins-cli.jar..." -wget -nv --no-check-certificate https://$domain${path_url%/}/jnlpJars/jenkins-cli.jar -O /var/lib/jenkins/jenkins-cli.jar 2>&1 +wget -nv --no-check-certificate https://$domain${path_url%/}/jnlpJars/jenkins-cli.jar -O /var/lib/jenkins/jenkins-cli.jar.temp 2>&1 +cp -f /var/lib/jenkins/jenkins-cli.jar.temp /var/lib/jenkins/jenkins-cli.jar #================================================= # UPGRADE PLUGINS