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

[fix] Could delete a non system user

This commit is contained in:
ljf 2020-02-27 17:49:59 +01:00
parent 80037d77f7
commit f2f1166cbe

View file

@ -21,9 +21,15 @@ ynh_abort_if_errors
#=================================================
export app=$YNH_APP_INSTANCE_NAME
# Retrieve arguments
ynh_export ssh_user public_key quota
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THIS ARGS
#=================================================
ynh_system_user_exists --username=$ssh_user || ynh_die --message="This user already exists"
#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================