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:
parent
cabfd3d3c0
commit
3bcfe37f49
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue