From b9d984fd7c124349f818304a5fd71165ce9be467 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Tue, 15 Mar 2022 23:10:42 +0100 Subject: [PATCH 1/5] 1.18.0 --- doc/DISCLAIMER.md | 6 +++--- doc/DISCLAIMER_fr.md | 8 ++++---- manifest.json | 4 ++-- scripts/_common.sh | 10 +++++----- scripts/upgrade | 13 +++++++++++++ 5 files changed, 27 insertions(+), 14 deletions(-) diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index c9d7398..72c4a15 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,9 +1,9 @@ ### Configuration -Once installed, UMS will create config file in `/home/ums/.config/UMS/` +Once installed, UMS will create config file in `/home/yunohost.app/ums/.config/UMS/` All settings are pretty well documented directly in the files. -The default setting will use the shared multimedia directory by default (located into `/home/yunohost.multimedia/share`), you may change this setting in `/home/ums/.config/UMS/UMS.conf` with the setting "folders" +The default setting will use the shared multimedia directory by default (located into `/home/yunohost.multimedia/share`), you may change this setting in `/home/yunohost.app/ums/.config/UMS/UMS.conf` with the setting "folders" ### Limitations @@ -18,7 +18,7 @@ If you can't find the server on a renderer, you may try the following trouble sh - Wait a little bit : the first start up will intialized the database and if you have a lot of media, this may take a while - Wait a little more : the server will broadcast an ALIVE message every 30 sec, so it may take this long for a renderer to find it - check if the service ums is running in the yunohost admin -- check on which network interface the server is annoucing : You may find the network and address used in `/home/ums/.config/UMS/debug.log` or `/var/log/ums/ums.log`. Search for a line like `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)` +- check on which network interface the server is annoucing : You may find the network and address used in `/home/yunohost.app/ums/.config/UMS/debug.log` or `/var/log/ums/ums.log`. Search for a line like `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)` The subnet to be used should be the same as your renderer (ie : if your TV is on 192.168.0.X and ums on 192.168.1.X, this will not work) On small device (Raspberry for example), transco may be requiring too much power : try some alternate transcoder. diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index 3c91f7d..b591932 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -1,15 +1,15 @@ ### Configuration -Une fois installé, tous les réglages peuvent etre trouver dans `/ums/.config/UMS/` +Une fois installé, tous les réglages peuvent etre trouver dans `/home/yunohost.app/ums/.config/UMS/` Les réglages sont plutot bien documentés, vous pouvez les changer directement dans le fichier. -Le réglage par défaut utilisera le répertoire multimedia partagé (situé dans `/home/yunohost.multimedia/share`). Vous pouvez changer ce réglage dans le fichier `/home/ums/.config/UMS/UMS.conf` sur le réglage "folders". +Le réglage par défaut utilisera le répertoire multimedia partagé (situé dans `/home/yunohost.multimedia/share`). Vous pouvez changer ce réglage dans le fichier `/home/yunohost.app/ums/.config/UMS/UMS.conf` sur le réglage "folders". ### Limitations - pas de multiinstance - fonctionne uniquement en sous-domaine (ums.mydomain.tld, et non mydomain.tld/ums) - pas de gestion d'utilisateur - - Pas énormément testée + - Pas énormément testé ### Other infos @@ -17,6 +17,6 @@ Si vous ne trouvez pas le serveur sur vos renderer, vous pouvez essayer les truc - Attendez un petit peu : lors du premier démarrage, UMS va indexer tous vos médias et ceci peut prendre un certain temps si vous en avez beaucoup - Attendez encore un peu : le serveur s'annonce par un message ALIVE toutes les 30 sec, donc cela peut prendre tout ce temps avant qu'un renderer ne le trouve - Vérifiez bien que le service ums tourne dans l'interface d'administration de yunohost -- Vérifiez sur quel interface réseau ums s'annonce. Vous pouvez trouver l'adresse utilisée et le réseau dans `/home/ums/.config/UMS/debug.log` ou `/var/log/ums/ums.log`. Cherchez une ligne ressemblant à `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`. Le sous-réseau utilisé doit être le même que le renderer (ie : si votre TV est sur 192.168.0.X et ums sur 192.168.1.X, cela ne marchera pas) +- Vérifiez sur quel interface réseau ums s'annonce. Vous pouvez trouver l'adresse utilisée et le réseau dans `/home/yunohost.app/ums/.config/UMS/debug.log` ou `/var/log/ums/ums.log`. Cherchez une ligne ressemblant à `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`. Le sous-réseau utilisé doit être le même que le renderer (ie : si votre TV est sur 192.168.0.X et ums sur 192.168.1.X, cela ne marchera pas) Sur de petits appareils (par exemple un raspberry), la transco peut demander trop de puissance, n'hésiter par à utiliser des transcodeur alternatifs. diff --git a/manifest.json b/manifest.json index ba16721..8499dfc 100644 --- a/manifest.json +++ b/manifest.json @@ -6,10 +6,10 @@ "en": "A DLNA, UPnP and HTTP(S) Media Server", "fr": "Un Serveur Multimedia DLNA, UPnP et HTTP(S)" }, - "version": "10.17.0~ynh1", + "version": "10.18.0~ynh1", "url": "www.universalmediaserver.com", "upstream": { - "version": "10.17.0", + "version": "10.18.0", "license": "GPL-2.0-or-later", "website": "www.universalmediaserver.com", "admindoc": "https://github.com/UniversalMediaServer/UniversalMediaServer/wiki", diff --git a/scripts/_common.sh b/scripts/_common.sh index 6d64e05..eec2196 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,11 +9,11 @@ pkg_dependencies="mediainfo dcraw p7zip" mach=`uname -m` -sha256_arm64=bb148afaf5b250ec4735bba81cb37ff8625e63e63cb9051472c725c955e3bf13 -sha256_armel=8785f54195a5b0a4a126338ccd72b61b00ab59243fe34477e6c8d7d4a90ef530 -sha256_armhf=a3664b1907f58b4b125a3a25bca1995bd9949843f38bc71a65908ec3d18006e0 -sha256_x86_64=311102fccfb06f90d2f370106c084ff41df6bb391d4f1ceff69b13f4af39f8e6 -sha256_x86=b27daf548e6c6e5a164616c5232d8752ad1c1e6c4b1da3477ce30d68904ea4b7 +sha256_arm64=ce22661f83df554065e04445c485ee76462afc28aeca1bfe9e8d8500a203a83f +sha256_armel=da7a77a29a0f6bf57c27ea27f720b11434016b4004d7d393af20c1df27dca845 +sha256_armhf=2c86cf254d4968d8be300cfc9c721cd83111743144a08d89361ba8aba63b780f +sha256_x86_64=69ebc27143c95e0acaf56b4fb1d6e5aa215291ed5e1a8fbcac53833071715af9 +sha256_x86=f03f7191759eb3025a2fd63935b8db2176246300a8aad352601f6a37c58d221a case "$mach" in "armv6l" ) mach="armel" diff --git a/scripts/upgrade b/scripts/upgrade index bcd85fc..45a3dfd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,6 +56,19 @@ then usermod -m -d /home/yunohost.app/$app $app fi +#10.17.0 has a bug that overwrite the media path. +#https://github.com/UniversalMediaServer/UniversalMediaServer/issues/2864 +#This will reinitialize it to /home/yunohost.multimedia/share +if [ $(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json") == "10.17.0" ] +then + ynh_replace_string --match_string="folders =/opt/yunohost/ums,/home/yunohost.app/ums" \ + --replace_string="folders=/home/yunohost.multimedia/share" \ + --target_file="/home/yunohost.app/ums/.config/UMS/UMS.conf" + ynh_replace_string --match_string="folders_monitored =/opt/yunohost/ums,/home/yunohost.app/ums" \ + --replace_string="folders_monitored=/home/yunohost.multimedia/share" \ + --target_file="/home/yunohost.app/ums/.config/UMS/UMS.conf" +fi + #================================================= # STANDARD UPGRADE STEPS #================================================= From d56998212edca1adab71f0c0c6e9eba0f9305f6d Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 15 Mar 2022 22:10:45 +0000 Subject: [PATCH 2/5] Auto-update README --- README.md | 8 ++++---- README_fr.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 364cd67..e5e8fee 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in A DLNA, UPnP and HTTP(S) Media Server -**Shipped version:** 10.17.0 +**Shipped version:** 10.18.0 @@ -29,10 +29,10 @@ A DLNA, UPnP and HTTP(S) Media Server ### Configuration -Once installed, UMS will create config file in `/home/ums/.config/UMS/` +Once installed, UMS will create config file in `/home/yunohost.app/ums/.config/UMS/` All settings are pretty well documented directly in the files. -The default setting will use the shared multimedia directory by default (located into `/home/yunohost.multimedia/share`), you may change this setting in `/home/ums/.config/UMS/UMS.conf` with the setting "folders" +The default setting will use the shared multimedia directory by default (located into `/home/yunohost.multimedia/share`), you may change this setting in `/home/yunohost.app/ums/.config/UMS/UMS.conf` with the setting "folders" ### Limitations @@ -47,7 +47,7 @@ If you can't find the server on a renderer, you may try the following trouble sh - Wait a little bit : the first start up will intialized the database and if you have a lot of media, this may take a while - Wait a little more : the server will broadcast an ALIVE message every 30 sec, so it may take this long for a renderer to find it - check if the service ums is running in the yunohost admin -- check on which network interface the server is annoucing : You may find the network and address used in `/home/ums/.config/UMS/debug.log` or `/var/log/ums/ums.log`. Search for a line like `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)` +- check on which network interface the server is annoucing : You may find the network and address used in `/home/yunohost.app/ums/.config/UMS/debug.log` or `/var/log/ums/ums.log`. Search for a line like `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)` The subnet to be used should be the same as your renderer (ie : if your TV is on 192.168.0.X and ums on 192.168.1.X, this will not work) On small device (Raspberry for example), transco may be requiring too much power : try some alternate transcoder. diff --git a/README_fr.md b/README_fr.md index b2ec506..2a54eac 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Un Serveur Multimedia DLNA, UPnP et HTTP(S) -**Version incluse :** 10.17.0 +**Version incluse :** 10.18.0 @@ -25,16 +25,16 @@ Un Serveur Multimedia DLNA, UPnP et HTTP(S) ### Configuration -Une fois installé, tous les réglages peuvent etre trouver dans `/ums/.config/UMS/` +Une fois installé, tous les réglages peuvent etre trouver dans `/home/yunohost.app/ums/.config/UMS/` Les réglages sont plutot bien documentés, vous pouvez les changer directement dans le fichier. -Le réglage par défaut utilisera le répertoire multimedia partagé (situé dans `/home/yunohost.multimedia/share`). Vous pouvez changer ce réglage dans le fichier `/home/ums/.config/UMS/UMS.conf` sur le réglage "folders". +Le réglage par défaut utilisera le répertoire multimedia partagé (situé dans `/home/yunohost.multimedia/share`). Vous pouvez changer ce réglage dans le fichier `/home/yunohost.app/ums/.config/UMS/UMS.conf` sur le réglage "folders". ### Limitations - pas de multiinstance - fonctionne uniquement en sous-domaine (ums.mydomain.tld, et non mydomain.tld/ums) - pas de gestion d'utilisateur - - Pas énormément testée + - Pas énormément testé ### Other infos @@ -42,7 +42,7 @@ Si vous ne trouvez pas le serveur sur vos renderer, vous pouvez essayer les truc - Attendez un petit peu : lors du premier démarrage, UMS va indexer tous vos médias et ceci peut prendre un certain temps si vous en avez beaucoup - Attendez encore un peu : le serveur s'annonce par un message ALIVE toutes les 30 sec, donc cela peut prendre tout ce temps avant qu'un renderer ne le trouve - Vérifiez bien que le service ums tourne dans l'interface d'administration de yunohost -- Vérifiez sur quel interface réseau ums s'annonce. Vous pouvez trouver l'adresse utilisée et le réseau dans `/home/ums/.config/UMS/debug.log` ou `/var/log/ums/ums.log`. Cherchez une ligne ressemblant à `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`. Le sous-réseau utilisé doit être le même que le renderer (ie : si votre TV est sur 192.168.0.X et ums sur 192.168.1.X, cela ne marchera pas) +- Vérifiez sur quel interface réseau ums s'annonce. Vous pouvez trouver l'adresse utilisée et le réseau dans `/home/yunohost.app/ums/.config/UMS/debug.log` ou `/var/log/ums/ums.log`. Cherchez une ligne ressemblant à `Using address /192.168.0.54 found on network interface: name:enp0s3 (enp0s3)`. Le sous-réseau utilisé doit être le même que le renderer (ie : si votre TV est sur 192.168.0.X et ums sur 192.168.1.X, cela ne marchera pas) Sur de petits appareils (par exemple un raspberry), la transco peut demander trop de puissance, n'hésiter par à utiliser des transcodeur alternatifs. From faef0be898c87880d343e8dfadc22daa2d47d4e5 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Tue, 15 Mar 2022 23:48:32 +0100 Subject: [PATCH 3/5] fix folders issue --- scripts/upgrade | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 45a3dfd..f657dc0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,17 +56,18 @@ then usermod -m -d /home/yunohost.app/$app $app fi -#10.17.0 has a bug that overwrite the media path. +#10.17.0, 10.17.1 & 10.16.0 had a bug that overwrite the media path at installation. #https://github.com/UniversalMediaServer/UniversalMediaServer/issues/2864 #This will reinitialize it to /home/yunohost.multimedia/share -if [ $(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json") == "10.17.0" ] +if [ $(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json") <= "10.17.0" ] then - ynh_replace_string --match_string="folders =/opt/yunohost/ums,/home/yunohost.app/ums" \ + ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" + ynh_replace_string --match_string="folders =/opt/yunohost/$app,/home/yunohost.app/$app" \ --replace_string="folders=/home/yunohost.multimedia/share" \ - --target_file="/home/yunohost.app/ums/.config/UMS/UMS.conf" - ynh_replace_string --match_string="folders_monitored =/opt/yunohost/ums,/home/yunohost.app/ums" \ + --target_file="/home/yunohost.app/$app/.config/UMS/UMS.conf" + ynh_replace_string --match_string="folders_monitored =/opt/yunohost/$app,/home/yunohost.app/$app" \ --replace_string="folders_monitored=/home/yunohost.multimedia/share" \ - --target_file="/home/yunohost.app/ums/.config/UMS/UMS.conf" + --target_file="/home/yunohost.app/$app/.config/UMS/UMS.conf" fi #================================================= From 2c20d71aa97c52d793368f0c0b22330ab5cb2ced Mon Sep 17 00:00:00 2001 From: Krakinou Date: Wed, 16 Mar 2022 00:19:55 +0100 Subject: [PATCH 4/5] fix folder settings --- scripts/upgrade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f657dc0..7c607fe 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,10 +56,11 @@ then usermod -m -d /home/yunohost.app/$app $app fi -#10.17.0, 10.17.1 & 10.16.0 had a bug that overwrite the media path at installation. +#10.17.0, 10.17.1 & 10.16.0 had a bug that overwrite the media path at startup of the service. #https://github.com/UniversalMediaServer/UniversalMediaServer/issues/2864 #This will reinitialize it to /home/yunohost.multimedia/share -if [ $(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json") <= "10.17.0" ] +current_version=$(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json") +if [ $current_version == "10.17.0" ] || [ $current_version == "10.16.0" ] then ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" ynh_replace_string --match_string="folders =/opt/yunohost/$app,/home/yunohost.app/$app" \ From 821b1c7392786fa7f2e4aef7cec8631bb91ef652 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 16 Mar 2022 12:06:06 +0000 Subject: [PATCH 5/5] Auto-update README --- README.md | 1 - README_fr.md | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index 8c1aac2..e5e8fee 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in A DLNA, UPnP and HTTP(S) Media Server - **Shipped version:** 10.18.0 diff --git a/README_fr.md b/README_fr.md index 20e5123..2a54eac 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,6 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Un Serveur Multimedia DLNA, UPnP et HTTP(S) - **Version incluse :** 10.18.0