From 1db6460970ddefcc0eeb80de6cba429beb943a39 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 29 Jun 2018 23:41:02 +0200 Subject: [PATCH] Upgrade jenkins-cli.phar --- scripts/_common.sh | 3 ++- scripts/upgrade | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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