diff --git a/README.md b/README.md index 2264711..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.16.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 6ae2acd..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.16.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. 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 e08796b..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.16.0~ynh1", + "version": "10.18.0~ynh1", "url": "www.universalmediaserver.com", "upstream": { - "version": "10.16.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 a70a27a..eec2196 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,11 +9,11 @@ pkg_dependencies="mediainfo dcraw p7zip" mach=`uname -m` -sha256_arm64=9bfbb42c68bf4fcdaaa37ab442bab42a56075b70d9092fbd4062c0f2d75fc570 -sha256_armel=7ac0048d9908afdb66b724dc571b7fbdbfd0cb18d18248a5667ca066ecd1515f -sha256_armhf=70c3b834140816837c102541e3025b01795ff0d530ae82d21e308d2dc140bc08 -sha256_x86_64=dd0aa1347dc223b83b647efc8004752624a187af937f838441fc259dd8d98077 -sha256_x86=c7d948d2245f306f95661808cb279563ac792d68f04b33c54f35c2d47d73ed49 +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..7c607fe 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,6 +56,21 @@ 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 startup of the service. +#https://github.com/UniversalMediaServer/UniversalMediaServer/issues/2864 +#This will reinitialize it to /home/yunohost.multimedia/share +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" \ + --replace_string="folders=/home/yunohost.multimedia/share" \ + --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/$app/.config/UMS/UMS.conf" +fi + #================================================= # STANDARD UPGRADE STEPS #=================================================