1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borgserver_ynh.git synced 2024-09-03 20:36:20 +02:00

[fix] Multi install CI test

This commit is contained in:
ljf 2021-04-10 11:35:53 +02:00 committed by ljf (zamentur)
parent 490dffd524
commit 116c4cda9c

View file

@ -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 # 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" ynh_system_user_exists --username=$ssh_user && ynh_die --message="This user already exists"
#================================================= #=================================================