mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
apply 'example_ynh' : move permission block
This commit is contained in:
parent
006211049d
commit
ec68ea9c94
1 changed files with 4 additions and 3 deletions
|
@ -225,15 +225,16 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring permissions..." --weight=2
|
||||
|
||||
# Create the "admin" permission and add the "admin_user" to it
|
||||
ynh_permission_create --permission "admin" --allowed "$admin_user"
|
||||
|
||||
# Make app public if necessary
|
||||
if [ $is_public -eq 1 ]
|
||||
then
|
||||
ynh_permission_update --permission="main" --add="visitors"
|
||||
fi
|
||||
|
||||
# Create the "admin" permission and add the "admin_user" to it
|
||||
# More users can be added to the group from the YunoHost webadmin
|
||||
ynh_permission_create --permission "admin" --allowed "$admin_user"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue