1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00

Remove duplicate public access and add condition in install according to auto install test

This commit is contained in:
mastereur 2021-03-25 00:18:52 +01:00
parent cabfd3d3c0
commit 3bcfe37f49
2 changed files with 4 additions and 5 deletions

View file

@ -241,7 +241,10 @@ then
ynh_permission_update --permission="main" --remove="visitors"
fi
ynh_permission_create --permission "public_space" --url "/public/" --allowed "visitors"
# Create the public space permission if needed
if ! ynh_permission_exists --permission "public_space"; then
ynh_permission_create --permission "public_space" --url "/public/" --allowed "visitors"
fi
#=================================================
# RELOAD NGINX

View file

@ -84,10 +84,6 @@ if [ -z "$phpversion" ]; then
phpversion="$YNH_PHP_VERSION"
fi
if ! ynh_permission_exists --permission "public_space"; then
ynh_permission_create --permission "public_space" --url "/public/" --allowed "visitors"
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================