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

Merge pull request #22 from YunoHost-Apps/testing

[fix] Could delete a non system user
This commit is contained in:
ljf (zamentur) 2020-02-27 17:50:59 +01:00 committed by GitHub
commit cf38d12a76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
#=================================================