From 8dbaf2904f6131bdf2d4ae61117fd7e88d409b0a Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 24 Mar 2022 21:26:38 +0700 Subject: [PATCH] Update install --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 68416f3..b533def 100755 --- a/scripts/install +++ b/scripts/install @@ -72,6 +72,10 @@ oidc_secret=$(ynh_hex_32_random) oidc_name="Outline" oidc_callback="$domain/auth/oidc.callback" +if yunohost app list | grep -q "$YNH_APP_ARG_DEX_DOMAIN"; then + ynh_die "The domain provided for Dex is already used by another app. Please chose another one !" +fi + yunohost app install https://github.com/YunoHost-Apps/dex_ynh --force --args "domain=$dex_domain&path=$dex_path&OIDC_name=$oidc_name&OIDC_secret=$oidc_secret&OIDC_callback=$oidc_callback" #=================================================