mirror of
https://github.com/YunoHost-Apps/pytition_ynh.git
synced 2024-09-03 20:16:08 +02:00
Add sanity check about admin
This commit is contained in:
parent
cbc8f1f43b
commit
811205fae3
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
|
||||
if [[ "$email" == "admin_legacy" ]]; then
|
||||
ynh_die --message="Please select a regular user as admin of the app, NOT the admin user!" --ret_code=1
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue