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:
commit
cf38d12a76
1 changed files with 6 additions and 0 deletions
|
@ -21,9 +21,15 @@ ynh_abort_if_errors
|
||||||
#=================================================
|
#=================================================
|
||||||
export app=$YNH_APP_INSTANCE_NAME
|
export app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
ynh_export ssh_user public_key quota
|
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
|
# STORE SETTINGS FROM MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue