From 37fc997496ad82f9eebb4bb9937aa53d6dd521fb Mon Sep 17 00:00:00 2001 From: eric_G <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:44:51 +0200 Subject: [PATCH] Testing (#25) * Add badges * Upgrade to v.1.2.6.2 * Remove --phpversion * Small fixes * set permissions * Fix linter warnings * Set SVG badge * Fix linter * patch (#11) * Add templates (#13) * Add templates * Update manifest.json * Auto-update README * Update check_process * 1.2.6.3 (#16) * 1.2.6.3 * Upgrade (#18) * Upgrade * Auto-update README * Fix Co-authored-by: yunohost-bot * Version 2 (#21) * v2 * Auto-update README * v2 * fix * Auto-update README * Create change_url * Update manifest.toml --------- Co-authored-by: yunohost-bot * Auto-update README * Update config.php.example Close #20 * fix linter * Update manifest.toml * Auto-update README * cleaning * Update manifest.toml * Update manifest.toml * Auto-update README * Auto-update README * Fix * Update upgrade * Update manifest.toml --------- Co-authored-by: Yunohost-Bot <> Co-authored-by: yunohost-bot Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> --- README.md | 1 - README_fr.md | 1 - manifest.toml | 5 +++-- scripts/install | 4 +++- scripts/upgrade | 4 +++- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 00034ae..4beb808 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ phpLDAPadmin is a web app for administering Lightweight Directory Access Protoco * Official app website: * Official admin documentation: * Upstream app code repository: -* YunoHost documentation for this app: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index a10cd63..4e99b21 100644 --- a/README_fr.md +++ b/README_fr.md @@ -31,7 +31,6 @@ phpLDAPadmin is a web app for administering Lightweight Directory Access Protoco * Site officiel de l’app : * Documentation officielle de l’admin : * Dépôt de code officiel de l’app : -* Documentation YunoHost pour cette app : * Signaler un bug : ## Informations pour les développeurs diff --git a/manifest.toml b/manifest.toml index 07f0af5..02fe93a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "phpLDAPadmin" description.en = "Manage OpenLDAP database over the web" description.fr = "Application web de gestion de la base OpenLDAP" -version = "1.2.6.6~ynh3" +version = "1.2.6.6~ynh4" maintainers = ["aymhce"] @@ -36,7 +36,7 @@ ram.runtime = "50M" [install.init_main_permission] type = "group" - default = "visitors" + default = "admins" [install.admin] type = "user" @@ -53,6 +53,7 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" + main.allowed = "admins" [resources.apt] packages ='php8.1-fpm, php8.1-ldap, php8.1-xml' diff --git a/scripts/install b/scripts/install index b0412ac..3c16a08 100755 --- a/scripts/install +++ b/scripts/install @@ -37,7 +37,9 @@ ynh_add_nginx_config ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/config.php.example" --destination="$install_dir/config/config.php" -chmod 644 $install_dir/config/config.php + +chmod 644 "$install_dir/config/config.php" +chown $app:$app "$install_dir/config/config.php" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 781a9e5..b0361ac 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,7 +49,9 @@ ynh_add_nginx_config ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/config.php.example" --destination="$install_dir/config/config.php" -chmod 644 $install_dir/config/config.php + +chmod 644 "$install_dir/config/config.php" +chown $app:$app "$install_dir/config/config.php" #================================================= # END OF SCRIPT