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:
parent
7b31bd779a
commit
5034ac5c69
1 changed files with 11 additions and 4 deletions
|
@ -69,12 +69,19 @@ ynh_remove_nodejs
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing sandbox domain..." --weight=1
|
ynh_script_progression --message="Removing sandbox domain..." --weight=1
|
||||||
|
|
||||||
sandboxdomain=sandbox-$domain
|
# We don't test that in CI
|
||||||
if sudo yunohost domain list | grep -q $sandboxdomain
|
if ! [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
|
||||||
then #if domain exist we remove it
|
sandboxdomain=sandbox-$domain
|
||||||
yunohost domain remove $sandboxdomain
|
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD YUNOHOST-API to refresh web admin domains after domain creation (bug core?)
|
# RELOAD YUNOHOST-API to refresh web admin domains after domain creation (bug core?)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue