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:
parent
2789aa326b
commit
181fa60460
1 changed files with 17 additions and 14 deletions
|
@ -82,21 +82,24 @@ sandboxdomain=sandbox-$domain
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF CRYPTAD_SANDBOX IS INSTALLED, IF NOT INSTALL IT
|
# CHECK IF CRYPTAD_SANDBOX IS INSTALLED, IF NOT INSTALL IT
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Cryptpad Sandboxing App if needed..." --weight=18
|
# We don't test that in CI
|
||||||
|
if ! [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
|
||||||
|
ynh_script_progression --message="Installing Cryptpad Sandboxing App if needed..." --weight=18
|
||||||
|
|
||||||
if ! yunohost app list | grep -q "id: cryptpad_sandboxing"; then
|
if ! yunohost app list | grep -q "id: cryptpad_sandboxing"; then
|
||||||
echo "Cryptpad Sandboxing App is not installed. Installing... "
|
echo "Cryptpad Sandboxing App is not installed. Installing... "
|
||||||
yunohost tools update
|
yunohost tools update
|
||||||
if yunohost app list | grep -q "$sandboxdomain"; then
|
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 !"
|
ynh_die "The domain $sandboxdomain provided for Cryptpad Sandboxing App is already used by another app. Please chose another one !"
|
||||||
fi
|
fi
|
||||||
public=public
|
public=public
|
||||||
if [ $is_public -eq 1 ]; then
|
if [ $is_public -eq 1 ]; then
|
||||||
#yunohost app install https://github.com/YunoHost-Apps/cryptpad_sandboxing_ynh --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=true"
|
#yunohost app install https://github.com/YunoHost-Apps/cryptpad_sandboxing_ynh --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=true"
|
||||||
yunohost app install https://github.com/Ddataa/cryptpad_sandboxing_ynh/tree/testing --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=true"
|
yunohost app install https://github.com/Ddataa/cryptpad_sandboxing_ynh/tree/testing --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=true"
|
||||||
else
|
else
|
||||||
#yunohost app install https://github.com/YunoHost-Apps/cryptpad_sandboxing_ynh --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=false"
|
#yunohost app install https://github.com/YunoHost-Apps/cryptpad_sandboxing_ynh --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=false"
|
||||||
yunohost app install https://github.com/Ddataa/cryptpad_sandboxing_ynh/tree/testing --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=false"
|
yunohost app install https://github.com/Ddataa/cryptpad_sandboxing_ynh/tree/testing --force --args "domain=$sandboxdomain&porti=$porti&cryptpad_domain=$domain&is_$public=false"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue