From f53f880595cf42304c4628d05f83afa55084d8f6 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 24 Dec 2017 02:25:27 +0100 Subject: [PATCH] Bad recipient --- scripts/_common.sh | 17 +++++++++++++++++ scripts/install | 2 +- scripts/restore | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 883fe5e..522fde5 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -343,6 +343,23 @@ ynh_exec_fully_quiet () { eval $@ > /dev/null 2>&1 } +# Remove any logs for all the following commands. +# +# usage: ynh_print_OFF +# WARNING: You should be careful with this helper, and never forgot to use ynh_print_ON as soon as possible to restore the logging. +ynh_print_OFF () { + set +x +} + +# Restore the logging after ynh_print_OFF +# +# usage: ynh_print_ON +ynh_print_ON () { + set -x + # Print an echo only for the log, to be able to know that ynh_print_ON has been called. + echo ynh_print_ON > /dev/null +} + #================================================= # Install or update the main directory yunohost.multimedia diff --git a/scripts/install b/scripts/install index dc40e6b..d9a54aa 100644 --- a/scripts/install +++ b/scripts/install @@ -217,4 +217,4 @@ sed -i '/#jenkins/d' /etc/hosts message="If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/jenkins_ynh" -ynh_send_readme_to_admin "$message" "$admin root" +ynh_send_readme_to_admin "$message" "root" diff --git a/scripts/restore b/scripts/restore index 24f6893..d899709 100644 --- a/scripts/restore +++ b/scripts/restore @@ -121,4 +121,4 @@ ynh_check_starting "Jenkins is fully up and running" "/var/log/$app/$app.log" "3 message="If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/jenkins_ynh" -ynh_send_readme_to_admin "$message" "$admin root" +ynh_send_readme_to_admin "$message" "root"