1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

Update install

This commit is contained in:
DDATAA 2022-10-18 09:15:47 +00:00 committed by GitHub
parent c7cc87fa30
commit 91ada62f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"