mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
admin panel allowed for the admin
This commit is contained in:
parent
331a49e1a3
commit
493dd02b0b
2 changed files with 3 additions and 5 deletions
|
@ -171,9 +171,7 @@ if [ $is_public -eq 0 ]; then
|
||||||
ynh_permission_update --permission "main" --remove "visitors" --add "all_users"
|
ynh_permission_update --permission "main" --remove "visitors" --add "all_users"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_permission_create --permission "admin"
|
ynh_permission_create --permission "admin" --url "/admin" --allowed $admin
|
||||||
|
|
||||||
ynh_permission_update --permission "admin" --add $admin
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
|
@ -201,9 +201,9 @@ chown -R $app: $final_path
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if ynh_exec_warn_less ynh_permission_create --permission "admin"; then
|
if ! ynh_permission_exists --permission "admin"; then
|
||||||
ynh_print_info "Upgrading SSOwat configuration..."
|
ynh_print_info "Upgrading SSOwat configuration..."
|
||||||
ynh_permission_update --permission "admin" --add $admin
|
ynh_permission_create --permission "admin" --url "/admin" --allowed $admin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue