mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Appease linter regarding permissions
This commit is contained in:
parent
5d0c99a84f
commit
2e7f7052be
3 changed files with 2 additions and 7 deletions
|
@ -64,7 +64,6 @@ ram.runtime = "50M"
|
|||
|
||||
[resources.permissions]
|
||||
main.url = "/"
|
||||
admin.url = "/admin"
|
||||
admin.show_tile = false
|
||||
|
||||
[resources.apt]
|
||||
|
|
|
@ -119,9 +119,6 @@ chown $app:$app "$php_config"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Finalizing installation..." --weight=14
|
||||
|
||||
# Give the admin the proper permission and give temporary admin access to visitors
|
||||
ynh_permission_update --permission="admin" --add="visitors"
|
||||
|
||||
firstname=$(ynh_user_get_info --username=$admin --key=firstname)
|
||||
lastname=$(ynh_user_get_info --username=$admin --key=lastname)
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
|
@ -133,9 +130,6 @@ installUrl="/admin/install/index.php"
|
|||
|
||||
ynh_local_curl $installUrl "u_email=$email" "u_firstname=$firstname" "u_name=$lastname" "u_login=$admin" "u_pwd=$password" "u_pwd2=$password"
|
||||
|
||||
# Remove visitor access to admin
|
||||
ynh_permission_update --permission="admin" --remove="visitors"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
|
@ -2,4 +2,6 @@ test_format = 1.0
|
|||
|
||||
[default]
|
||||
|
||||
args.init_admin_permission="package_checker"
|
||||
|
||||
test_upgrade_from.f356f5b8f496f626aba3ec0f9d9c40c4cb54e7f6.name = "2.15.2~ynh1"
|
||||
|
|
Loading…
Reference in a new issue