mirror of
https://github.com/YunoHost-Apps/borgserver_ynh.git
synced 2024-09-03 20:36:20 +02:00
Fix package_check tweak..
This commit is contained in:
parent
9d8d85b6e2
commit
a3da355e0e
1 changed files with 2 additions and 1 deletions
|
@ -14,9 +14,10 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# Here is a small hack to avoid multi install CI test to fail due
|
# Here is a small hack to avoid multi install CI test to fail due
|
||||||
# to same ssh_user provided
|
# 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"
|
ssh_user+="$YNH_APP_INSTANCE_NUMBER"
|
||||||
fi
|
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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue