From 2e7f7052bea7bf4fd883c130f1bad930525cba06 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 11 Oct 2023 23:15:19 +0200 Subject: [PATCH] Appease linter regarding permissions --- manifest.toml | 1 - scripts/install | 6 ------ tests.toml | 2 ++ 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/manifest.toml b/manifest.toml index e12c002..47773ed 100644 --- a/manifest.toml +++ b/manifest.toml @@ -64,7 +64,6 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" - admin.url = "/admin" admin.show_tile = false [resources.apt] diff --git a/scripts/install b/scripts/install index 7dc7ec3..dbabb60 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/tests.toml b/tests.toml index 1520b9b..e77d47d 100644 --- a/tests.toml +++ b/tests.toml @@ -2,4 +2,6 @@ test_format = 1.0 [default] + args.init_admin_permission="package_checker" + test_upgrade_from.f356f5b8f496f626aba3ec0f9d9c40c4cb54e7f6.name = "2.15.2~ynh1"