From b8aba0f2481932bb5a74ee536e7c603bef676c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 9 Aug 2023 08:56:47 +0200 Subject: [PATCH] fix permission --- conf/systemd.service | 2 +- manifest.toml | 8 ++++---- scripts/change_url | 7 +++---- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 2 +- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 7fce7bb..2aac9e5 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=LibreX: A privacy meta search engine +Description=LibreX: Privacy meta search engine After=syslog.target network.target [Service] diff --git a/manifest.toml b/manifest.toml index ff7571d..25d2038 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "LibreX" description.en = "Meta search engine for Google and popular torrent sites" description.fr = "Méta moteur de recherche pour Google et les sites torrent populaires" -version = "2023.05.31~ynh3" +version = "2023.08.09~ynh1" maintainers = ["eric_G"] @@ -16,7 +16,7 @@ admindoc = "https://github.com/hnhx/librex/wiki" code = "https://github.com/hnhx/librex" [integration] -yunohost = ">= 11.1.19" +yunohost = ">= 11.2" architectures = "all" multi_instance = true ldap = false @@ -36,8 +36,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/hnhx/librex/archive/b8817a6e28d1de3de35a9f4abe9f501f6a1fe997.tar.gz" - sha256 = "25fff03e949bacbaf01ff3eb71093ee2f3becc542777cf96f86cd7ea6572bdda" + url = "https://github.com/hnhx/librex/archive/b5a9f12df91cb8ded541df291da58ce2f104fe62.tar.gz" + sha256 = "b88ae9896b281f2929b4e48f947d261bb7ecd7e2c6bd5c378237be3606f6c9b5" autoupdate.upstream = "https://github.com/hnhx/librex" autoupdate.strategy = "latest_github_commit" diff --git a/scripts/change_url b/scripts/change_url index 2b403a7..1b5721c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -28,12 +28,11 @@ ynh_change_url_nginx_config #================================================= # SPECIFIC MODIFICATIONS #================================================= -#REMOVEME? -domain="$new_domain" + ynh_add_config --template="../conf/opensearch.xml.example" --destination="$install_dir/opensearch.xml" -chmod 400 "$install_dir/opensearch.xml" -chown $app:$app "$install_dir/opensearch.xml" +chmod 650 "$install_dir/opensearch.xml" +chown $app:www-data "$install_dir/opensearch.xml" #================================================= # GENERIC FINALISATION diff --git a/scripts/install b/scripts/install index 57fdba6..4d9052a 100755 --- a/scripts/install +++ b/scripts/install @@ -37,7 +37,7 @@ ynh_add_systemd_config # Use logrotate to manage application logfile(s) ynh_use_logrotate -yunohost service add $app --description="A privacy meta search engine" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Privacy meta search engine" --log="/var/log/$app/$app.log" #================================================= # ADD A CONFIGURATION @@ -50,7 +50,7 @@ ynh_add_config --template="../conf/opensearch.xml.example" --destination="$insta chmod 400 "$install_dir/config.php" chown $app:$app "$install_dir/config.php" chmod 650 "$install_dir/opensearch.xml" -chown $app:$app "$install_dir/opensearch.xml" +chown $app:www-data "$install_dir/opensearch.xml" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index 65d89c1..0ce0c96 100755 --- a/scripts/restore +++ b/scripts/restore @@ -34,7 +34,7 @@ systemctl enable $app.service --quiet ynh_restore_file --origin_path="/etc/logrotate.d/$app" -yunohost service add $app --description="A privacy meta search engine" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Privacy meta search engine" --log="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" diff --git a/scripts/upgrade b/scripts/upgrade index d6ae4ea..7378277 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,7 +56,7 @@ ynh_add_systemd_config # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append -yunohost service add $app --description="A privacy meta search engine" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Privacy meta search engine" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE