From 6e55317039820fb33eae510ac370352ee4d854c3 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 10 Jun 2021 11:26:13 +0200 Subject: [PATCH 1/4] Load api key for change_url --- scripts/change_url | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/change_url b/scripts/change_url index d0e9d2f..c177364 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -29,6 +29,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) +api_key=$(ynh_app_setting_get --app=$app --key=api_key) #================================================= # BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP From ec61512016c2ca266b43ab4967a12de70aa0bea5 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 13 Jun 2021 13:28:06 +0200 Subject: [PATCH 2/4] Integrate with YunoHost's multimedia directories --- doc/DISCLAIMER.md | 1 + doc/DISCLAIMER_fr.md | 1 + scripts/install | 10 ++++++++++ scripts/restore | 10 ++++++++++ 4 files changed, 22 insertions(+) diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 2502870..057af7d 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,3 +1,4 @@ * Supported architectures are `arm`, `arm64`, and `amd64` * Access control is done with YunoHost's permissions system. * API (`domain.tld/path/api`) can be accessed by visitors to allow control by remote clients. +* The app uses YunoHost's multimedia directories, hence it has write access to users' and shared directories in `/home/yunohost.multimedia`. After installation, you can choose these directories to store your media. diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index 1e71b63..aeb69c3 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -1,3 +1,4 @@ * Les architectures compatibles sont `arm`, `arm64`, et `amd64` * Le contrôle de l'accès se fait avec le système de permissions de YunoHost. * L'API (`domain.tld/path/api`) est accessible aux visiteurs pour permettre le contrôle via des clients externes. +* L'application utilise les dossiers multimédia de YunoHost, elle a donc accès en écriture aux dossiers utilisateurs et communs de `/home/yunohost.multimedia`. Après installation, vous pourrez choisir ces dossiers pour y stocker vos médias. diff --git a/scripts/install b/scripts/install index bfc2beb..ca6202a 100755 --- a/scripts/install +++ b/scripts/install @@ -126,6 +126,16 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app: "$final_path" +#================================================= +# YUNOHOST MULTIMEDIA INTEGRATION +#================================================= +ynh_script_progression --message="Adding multimedia directories..." --weight=2 + +# Build YunoHost multimedia directories +ynh_multimedia_build_main_dir +# Enable writing into these directories +ynh_multimedia_addaccess $app + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/restore b/scripts/restore index 341b81e..11c5999 100755 --- a/scripts/restore +++ b/scripts/restore @@ -70,6 +70,16 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app: "$final_path" +#================================================= +# YUNOHOST MULTIMEDIA INTEGRATION +#================================================= +ynh_script_progression --message="Adding multimedia directories..." --weight=2 + +# Build YunoHost multimedia directories +ynh_multimedia_build_main_dir +# Enable writing into these directories +ynh_multimedia_addaccess $app + #================================================= # SPECIFIC RESTORATION #================================================= From b6424ed4982ab7365d0e6b60170960ab8ae30f85 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot Date: Sun, 13 Jun 2021 11:30:59 +0000 Subject: [PATCH 3/4] Auto-update README --- README.md | 1 + README_fr.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 44efc91..c6f8230 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ A music collection manager for Usenet and BitTorrent users. * Supported architectures are `arm`, `arm64`, and `amd64` * Access control is done with YunoHost's permissions system. * API (`domain.tld/path/api`) can be accessed by visitors to allow control by remote clients. +* The app uses YunoHost's multimedia directories, hence it has write access to users' and shared directories in `/home/yunohost.multimedia`. After installation, you can choose these directories to store your media. ## Documentation and resources diff --git a/README_fr.md b/README_fr.md index 3c7f0d0..2718e3f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -26,6 +26,7 @@ Un gestionnaire de discothèque pour utilisateurs de Usenet et BitTorrent. * Les architectures compatibles sont `arm`, `arm64`, et `amd64` * Le contrôle de l'accès se fait avec le système de permissions de YunoHost. * L'API (`domain.tld/path/api`) est accessible aux visiteurs pour permettre le contrôle via des clients externes. +* L'application utilise les dossiers multimédia de YunoHost, elle a donc accès en écriture aux dossiers utilisateurs et communs de `/home/yunohost.multimedia`. Après installation, vous pourrez choisir ces dossiers pour y stocker vos médias. ## Documentations et ressources From 22626a85e735bca3ef98696ac981f9bdf431ca9c Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 13 Jun 2021 13:39:48 +0200 Subject: [PATCH 4/4] Bump YunoHost requirement for multimedia helpers --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index a527c8a..ae3edd1 100644 --- a/manifest.json +++ b/manifest.json @@ -20,7 +20,7 @@ "email": "tituspijean@outlook.com" }, "requirements": { - "yunohost": ">= 4.1.3" + "yunohost": ">= 4.2" }, "multi_instance": true, "services": [