From a3da355e0e3ddc19cce101fa0fa1fc1c05204eda Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 4 Dec 2023 21:31:34 +0100 Subject: [PATCH] Fix package_check tweak.. --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 45ba80e..4faa57f 100755 --- a/scripts/install +++ b/scripts/install @@ -14,9 +14,10 @@ source /usr/share/yunohost/helpers #================================================= # Here is a small hack to avoid multi install CI test to fail due # to same ssh_user provided -if [[ "${PACKAGE_CHECK_EXEC:-}" = "1" ]] ; then +if [[ "${PACKAGE_CHECK_EXEC:-}" = "1" ]] && [[ "$YNH_APP_INSTANCE_NUMBER" != "1" ]] ; then ssh_user+="$YNH_APP_INSTANCE_NUMBER" fi + ynh_system_user_exists --username=$ssh_user && ynh_die --message="This user already exists" #=================================================