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

Set permissions

This commit is contained in:
ericgaspar 2021-02-09 18:22:54 +01:00
parent 9c2a17f06f
commit 3dae601613
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 1 deletions

View file

@ -247,7 +247,7 @@ then
ynh_permission_update --permission="main" --remove="visitors"
fi
ynh_permission_create --permission "public access" --url "/public/" --allowed "visitors"
ynh_permission_create --permission "public_space" --url "/public/" --allowed "visitors"
#=================================================
# RELOAD NGINX

View file

@ -78,6 +78,10 @@ if [ -z "$fpm_usage" ]; then
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
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
#=================================================