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:
parent
9c2a17f06f
commit
3dae601613
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue