From 116c4cda9c86e13af1caf60fdb619c501dbf140c Mon Sep 17 00:00:00 2001 From: ljf Date: Sat, 10 Apr 2021 11:35:53 +0200 Subject: [PATCH] [fix] Multi install CI test --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 9cade3c..0f7bdeb 100755 --- a/scripts/install +++ b/scripts/install @@ -28,7 +28,11 @@ ynh_export ssh_user public_key quota alert_delay alert_mails #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THIS ARGS #================================================= - +# 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 + ssh_user+="$YNH_APP_INSTANCE_NUMBER" +fi ynh_system_user_exists --username=$ssh_user && ynh_die --message="This user already exists" #=================================================