diff --git a/scripts/_common.sh b/scripts/_common.sh index c6fec0c..c7e21fa 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -27,7 +27,8 @@ CHECK_SIZE () { # Vérifie avant chaque backup que l'espace est suffisant #================================================= IS_PACKAGE_CHECK () { # Détermine une exécution en conteneur (Non testé) - return $(uname -n | grep -c 'pchecker_lxc') +# return $(uname -n | grep -c 'pchecker_lxc') + return $(env | grep -c container=lxc) } #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 570c94e..96cf7fa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,3 +113,9 @@ ynh_system_reload nginx # Wait for Jenkins fully started ynh_check_starting "Jenkins is fully up and running" "/var/log/$app/$app.log" "300" + +#================================================= +# UPGRADE JENKINS-CLI.PHAR +#================================================= + +wget -nv --no-check-certificate https://$domain$path_url/jnlpJars/jenkins-cli.jar -O /var/lib/jenkins/jenkins-cli.jar