1
0
Fork 0
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:
Salamandar 2023-07-31 14:36:20 +02:00 committed by Salamandar
parent cbc8f1f43b
commit 811205fae3

View file

@ -11,6 +11,10 @@ source /usr/share/yunohost/helpers
email=$(ynh_user_get_info --username=$admin --key=mail) 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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================