diff --git a/scripts/install b/scripts/install index 1a3d85b..d23178d 100644 --- a/scripts/install +++ b/scripts/install @@ -75,15 +75,14 @@ sandboxdomain=sandbox-$domain #================================================= ynh_script_progression --message="Installing Cryptpad Sandboxing App if needed..." --weight=18 -if ! yunohost app list | grep -q "id: cryptpad_sandboxing_ynh"; then +if ! yunohost app list | grep -q "id: cryptpad_sandboxing"; then echo "Cryptpad Sandboxing App is not installed. Installing... " yunohost tools update if yunohost app list | grep -q "$sandboxdomain"; then ynh_die "The domain $sandboxdomain provided for Cryptpad Sandboxing App is already used by another app. Please chose another one !" fi public=public - echo "$YNH_APP_ARG_IS_PUBLIC" - if $YNH_APP_ARG_IS_PUBLIC then + if $YNH_APP_ARG_IS_PUBLIC; then yunohost app install https://github.com/YunoHost-Apps/cryptpad_sandboxing_ynh --force --args "domain=$sandboxdomain&is_$public=true" else yunohost app install https://github.com/YunoHost-Apps/cryptpad_sandboxing_ynh --force --args "domain=$sandboxdomain&is_$public=false"