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 2023-02-09 13:42:40 +00:00 committed by GitHub
parent a0ede43e31
commit 4fd449669b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,15 +71,15 @@ ynh_app_setting_set --app=$app --key=porti --value=$porti
#=================================================
# if the main domain for the app is a root domain, we create a correct sandbox subdomain
if [ $domain == *"."* ]; then
if [[ $domain == *"."* ]]; then
sandboxdomain=sandbox.$domain
fi
# if the main domain for the app is already a sub-domain, we create a correct sandbox domain
if [ $domain == *"."*"."* ]; then
if [[ $domain == *"."*"."* ]]; then
sandboxdomain=sandbox-$domain
fi
# if the main domain for the app is a .local root domain, we create a correct sandbox subdomain
if [ $domain == *".local" ]; then
if [[ $domain == *".local" ]]; then
sandboxdomain=sandbox-$domain
fi