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

Update remove

This commit is contained in:
DDATAA 2022-10-27 13:51:15 +00:00 committed by GitHub
parent 7b31bd779a
commit 5034ac5c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,11 +69,18 @@ ynh_remove_nodejs
#=================================================
ynh_script_progression --message="Removing sandbox domain..." --weight=1
# We don't test that in CI
if ! [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sandboxdomain=sandbox-$domain
ynh_permission_url --permission="main" --remove_url=${sandboxdomain%/} --auth_header=false
if sudo yunohost domain list | grep -q $sandboxdomain
then #if domain exist we remove it
yunohost domain remove $sandboxdomain
fi
fi
#=================================================
# RELOAD YUNOHOST-API to refresh web admin domains after domain creation (bug core?)