From 415fa5b9d7bca2846e474b1233b583bebf744b4a Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 23 May 2021 01:29:07 +0530 Subject: [PATCH 1/2] cosmetic fixes --- scripts/backup | 1 - scripts/change_url | 2 +- scripts/upgrade | 7 +------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/backup b/scripts/backup index 401c0ef..7238ad2 100755 --- a/scripts/backup +++ b/scripts/backup @@ -31,7 +31,6 @@ app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) db_name=$(ynh_app_setting_get --app=$app --key=db_name) -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # DECLARE DATA AND CONF FILES TO BACKUP diff --git a/scripts/change_url b/scripts/change_url index d902869..d1831ac 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -28,7 +28,7 @@ ynh_script_progression --message="Loading installation settings..." # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) -app_port=$()ynh_app_setting_get --app=$app --key=port) +app_port=$(ynh_app_setting_get --app=$app --key=port) #================================================= # BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP diff --git a/scripts/upgrade b/scripts/upgrade index c3019a5..f4dc163 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -88,11 +88,6 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi -if ! ynh_permission_exists --permission="admin"; then - # Create the required permissions - ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin -fi - # Create a permission if needed if ! ynh_permission_exists --permission="api"; then ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true" @@ -126,7 +121,7 @@ fi # this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" +chmod -R $app: "$final_path" #================================================= # NGINX CONFIGURATION From d7b8b0c5873dde50daf728fa3befd340790856ad Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 9 Jun 2022 17:29:49 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 17 +++++++++-------- README_fr.md | 23 ++++++++++++++--------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 928a26b..00aed83 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Jackett for YunoHost -[![Integration level](https://dash.yunohost.org/integration/jackett.svg)](https://dash.yunohost.org/appci/app/jackett) ![](https://ci-apps.yunohost.org/ci/badges/jackett.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/jackett.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/jackett.svg)](https://dash.yunohost.org/appci/app/jackett) ![Working status](https://ci-apps.yunohost.org/ci/badges/jackett.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/jackett.maintain.svg) [![Install Jackett with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=jackett) *[Lire ce readme en français.](./README_fr.md)* @@ -23,7 +23,7 @@ API support for your favorite torrent trackers ## Screenshots -![](./doc/screenshots/demo.png) +![Screenshot of Jackett](./doc/screenshots/demo.png) ## Disclaimers / important information @@ -31,20 +31,21 @@ API support for your favorite torrent trackers * No LDAP Support ## Documentation and resources -* Official app website: https://github.com/Jackett/Jackett -* Upstream app code repository: https://github.com/Jackett/Jackett -* YunoHost documentation for this app: https://yunohost.org/app_jackett -* Report a bug: https://github.com/YunoHost-Apps/jackett_ynh/issues +* Official app website: +* Upstream app code repository: +* YunoHost documentation for this app: +* Report a bug: ## Developer info Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/jackett_ynh/tree/testing). To try the testing branch, please proceed like that. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/jackett_ynh/tree/testing --debug or sudo yunohost app upgrade jackett -u https://github.com/YunoHost-Apps/jackett_ynh/tree/testing --debug ``` -**More info regarding app packaging:** https://yunohost.org/packaging_apps \ No newline at end of file +**More info regarding app packaging:** diff --git a/README_fr.md b/README_fr.md index 856441b..b2ff604 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,10 +1,14 @@ + + # Jackett pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/jackett.svg)](https://dash.yunohost.org/appci/app/jackett) ![](https://ci-apps.yunohost.org/ci/badges/jackett.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/jackett.maintain.svg) +[![Niveau d'intégration](https://dash.yunohost.org/integration/jackett.svg)](https://dash.yunohost.org/appci/app/jackett) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/jackett.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/jackett.maintain.svg) [![Installer Jackett avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=jackett) *[Read this readme in english.](./README.md)* -*[Lire ce readme en français.](./README_fr.md)* > *Ce package vous permet d'installer Jackett rapidement et simplement sur un serveur YunoHost. Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* @@ -19,7 +23,7 @@ API pour vos trackers torrent préférés ## Captures d'écran -![](./doc/screenshots/demo.png) +![Capture d'écran de Jackett](./doc/screenshots/demo.png) ## Avertissements / informations importantes @@ -27,20 +31,21 @@ API pour vos trackers torrent préférés * No LDAP Support ## Documentations et ressources -* Site officiel de l'app : https://github.com/Jackett/Jackett -* Dépôt de code officiel de l'app : https://github.com/Jackett/Jackett -* Documentation YunoHost pour cette app : https://yunohost.org/app_jackett -* Signaler un bug : https://github.com/YunoHost-Apps/jackett_ynh/issues +* Site officiel de l'app : +* Dépôt de code officiel de l'app : +* Documentation YunoHost pour cette app : +* Signaler un bug : ## Informations pour les développeurs Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/jackett_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/jackett_ynh/tree/testing --debug ou sudo yunohost app upgrade jackett -u https://github.com/YunoHost-Apps/jackett_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps \ No newline at end of file +**Plus d'infos sur le packaging d'applications :**