From 155ef1d446685c594a6b99c4c24fdff0b231916a Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Tue, 18 Oct 2022 14:29:13 +0000 Subject: [PATCH] Update install --- scripts/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 22d2127..483ea21 100644 --- a/scripts/install +++ b/scripts/install @@ -51,6 +51,13 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=admin --value=$admin +#================================================= +# CHECK IF THE SANDBOX DOMAIN IS ALREADY SETUP WITH CORRECT CERTIFICATE +#================================================= +if ! yunohost domain cert status $domain | grep -q "summary: Great!"; then + ynh_die "The domain $domain does not have correct Let's Encrypt certificates !" +fi + #================================================= # STANDARD MODIFICATIONS #=================================================