From 24e2f6113cae8e55bf5b97cd7fbbed2526e7b62b Mon Sep 17 00:00:00 2001 From: Galettofraise Date: Wed, 23 Feb 2022 14:51:00 +0100 Subject: [PATCH 1/4] [fix] Add --purge --- scripts/remove | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/remove b/scripts/remove index af2403c..87ed43d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -64,6 +64,16 @@ ynh_script_progression --message="Removing NGINX web server configuration..." -- # Remove the dedicated NGINX config ynh_remove_nginx_config +#================================================ +# REMOVE DATA DIR +#================================================ + +# Remove the data directory if --purge option is used +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] +then + ynh_script_progression --message="Removing app data directory..." --time --weight=1 + ynh_secure_remove --file="/home/yunohost.app/$app" +fi #================================================= # REMOVE LOGROTATE CONFIGURATION From dcf8c0a3f7f82115ebe572db6e159b7f0ffb4ce1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 28 Feb 2022 03:46:28 +0100 Subject: [PATCH 2/4] Update remove --- scripts/remove | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/remove b/scripts/remove index 87ed43d..f617bc2 100644 --- a/scripts/remove +++ b/scripts/remove @@ -19,6 +19,7 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) port=$(ynh_app_setting_get --app=$app --key=port) final_path=$(ynh_app_setting_get --app=$app --key=final_path) +datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= # STANDARD REMOVE From 3ad773673e157992acb61681aea167c29af3ed12 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 27 May 2022 13:45:38 +0000 Subject: [PATCH 3/4] Auto-update README --- README.md | 19 ++++++++++--------- README_fr.md | 25 +++++++++++++++---------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 07a30c5..fbcb1e0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Airsonic for YunoHost -[![Integration level](https://dash.yunohost.org/integration/airsonic.svg)](https://dash.yunohost.org/appci/app/airsonic) ![](https://ci-apps.yunohost.org/ci/badges/airsonic.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/airsonic.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/airsonic.svg)](https://dash.yunohost.org/appci/app/airsonic) ![Working status](https://ci-apps.yunohost.org/ci/badges/airsonic.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/airsonic.maintain.svg) [![Install Airsonic with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=airsonic) *[Lire ce readme en français.](./README_fr.md)* @@ -23,7 +23,7 @@ Stream and manage your music collection ## Screenshots -![](./doc/screenshots/screenshot_01.png) +![Screenshot of Airsonic](./doc/screenshots/screenshot_01.png) ## Disclaimers / important information @@ -36,21 +36,22 @@ Stream and manage your music collection ## Documentation and resources -* Official app website: https://airsonic.github.io/ -* Official admin documentation: https://airsonic.github.io/docs/ -* Upstream app code repository: https://github.com/airsonic/airsonic -* YunoHost documentation for this app: https://yunohost.org/app_airsonic -* Report a bug: https://github.com/YunoHost-Apps/airsonic_ynh/issues +* Official app website: +* Official admin documentation: +* 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/airsonic_ynh/tree/testing). To try the testing branch, please proceed like that. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/airsonic_ynh/tree/testing --debug or sudo yunohost app upgrade airsonic -u https://github.com/YunoHost-Apps/airsonic_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 6333cfb..d0d3766 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,10 +1,14 @@ + + # Airsonic pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/airsonic.svg)](https://dash.yunohost.org/appci/app/airsonic) ![](https://ci-apps.yunohost.org/ci/badges/airsonic.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/airsonic.maintain.svg) +[![Niveau d'intégration](https://dash.yunohost.org/integration/airsonic.svg)](https://dash.yunohost.org/appci/app/airsonic) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/airsonic.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/airsonic.maintain.svg) [![Installer Airsonic avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=airsonic) *[Read this readme in english.](./README.md)* -*[Lire ce readme en français.](./README_fr.md)* > *Ce package vous permet d'installer Airsonic 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 @@ Streamez et gérez votre collection de musique ## Captures d'écran -![](./doc/screenshots/screenshot_01.png) +![Capture d'écran de Airsonic](./doc/screenshots/screenshot_01.png) ## Avertissements / informations importantes @@ -31,21 +35,22 @@ Streamez et gérez votre collection de musique * Voir https://www.reddit.com/r/airsonic/comments/doscco/jvm_memory_issues/ ## Documentations et ressources -* Site officiel de l'app : https://airsonic.github.io/ -* Documentation officielle de l'admin : https://airsonic.github.io/docs/ -* Dépôt de code officiel de l'app : https://github.com/airsonic/airsonic -* Documentation YunoHost pour cette app : https://yunohost.org/app_airsonic -* Signaler un bug : https://github.com/YunoHost-Apps/airsonic_ynh/issues +* 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 Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/airsonic_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/airsonic_ynh/tree/testing --debug ou sudo yunohost app upgrade airsonic -u https://github.com/YunoHost-Apps/airsonic_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 :** From a82920594a12fa8b7b67da140728371479418632 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 27 May 2022 18:44:33 +0200 Subject: [PATCH 4/4] Update scripts/remove MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index f617bc2..04721d0 100644 --- a/scripts/remove +++ b/scripts/remove @@ -72,7 +72,7 @@ ynh_remove_nginx_config # Remove the data directory if --purge option is used if [ "${YNH_APP_PURGE:-0}" -eq 1 ] then - ynh_script_progression --message="Removing app data directory..." --time --weight=1 + ynh_script_progression --message="Removing app data directory..." --weight=1 ynh_secure_remove --file="/home/yunohost.app/$app" fi