From 811205fae3e12f841fdbf0cf157fea944bbecbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 31 Jul 2023 14:36:20 +0200 Subject: [PATCH] Add sanity check about admin --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 273e423..cea34a9 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================