mirror of
https://github.com/YunoHost-Apps/minidlna_ynh.git
synced 2024-09-03 19:36:34 +02:00
cleaning
This commit is contained in:
parent
6829edc534
commit
25d3496415
12 changed files with 31 additions and 36 deletions
|
@ -1,11 +1,5 @@
|
|||
# MiniDLNA
|
||||
|
||||
MiniDLNA is a lightweight [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) server.
|
||||
It allows to easily share multimedia files with any compatible devices present on the LAN.
|
||||
|
||||
MiniDLNA does not have a graphical interface, but does not require any special configuration.
|
||||
|
||||
### What multimedia files are shared?
|
||||
|
||||
MiniDLNA is sharing the folder `/home/yunohost.multimedia/share`, which is common to each user in `/home/$USER/Multimedia/Share`.
|
||||
[More information about multimedia files here.](https://github.com/YunoHost-Apps/yunohost.multimedia)
|
||||
|
||||
|
|
|
@ -1,10 +1,3 @@
|
|||
# MiniDLNA
|
||||
|
||||
MiniDLNA est un serveur [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) ultra léger.
|
||||
Il permet de partager très simplement les fichiers multimédias avec tout les appareils compatibles présent sur le réseau local.
|
||||
|
||||
Minidlna ne dispose pas d'une interface graphique, mais ne nécessite pas de configuration particulière.
|
||||
|
||||
### Quels fichiers multimédias sont partagés ?
|
||||
|
||||
Minidlna partage le dossier `/home/yunohost.multimedia/share`, qui est commun à chaque utilisateur dans le dossier `/home/$USER/Multimedia/Share`.
|
||||
|
|
|
@ -2,7 +2,4 @@
|
|||
|
||||
Éditez le fichier `/etc/minidlna.conf` pour ajuster la configuration de MiniDLNA.
|
||||
|
||||
## Fonctionnalités spécifiques à YunoHost
|
||||
|
||||
* Utilise les répertoires multimédia partagés.
|
||||
* Lié à transmission, Nextcloud et toute autre application qui utilise les répertoires multimédia.
|
||||
MiniDLNA va servir les fichiers présents dans le répertoire `/home/yunohost.multimedia/share`
|
|
@ -1 +1,8 @@
|
|||
MiniDLNA is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.
|
||||
MiniDLNA is a lightweight [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) server.
|
||||
It allows to easily share multimedia files with any compatible devices present on the LAN.
|
||||
MiniDLNA does not have a graphical interface, but does not require any special configuration.
|
||||
|
||||
## YunoHost specific features
|
||||
|
||||
* Use shared Multimedia Directories
|
||||
* Linked to transmission, Nextcloud and all other app which use Multimedia Directories.
|
||||
|
|
|
@ -1 +1,8 @@
|
|||
MiniDLNA est un simple serveur multimédia, dont le but est d'être entièrement compatible avec les clients DLNA/UPnP-AV.
|
||||
MiniDLNA est un serveur [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) ultra léger.
|
||||
Il permet de partager très simplement les fichiers multimédias avec tout les appareils compatibles présent sur le réseau local.
|
||||
Minidlna ne dispose pas d'une interface graphique, mais ne nécessite pas de configuration particulière.
|
||||
|
||||
## Fonctionnalités spécifiques à YunoHost
|
||||
|
||||
* Utilise les répertoires multimédia partagés.
|
||||
* Lié à transmission, Nextcloud et toute autre application qui utilise les répertoires multimédia.
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
You can find a config file at /etc/minidlna.conf
|
||||
|
||||
MiniDLNA is going to serve the files present in the directory /home/yunohost.multimedia/share
|
|
@ -5,7 +5,7 @@ name = "MiniDLNA"
|
|||
description.en = "Light DLNA server to share media files over the LAN"
|
||||
description.fr = "Serveur DLNA léger pour partager les fichiers multimédia sur le réseau local"
|
||||
|
||||
version = "1.0~ynh9"
|
||||
version = "1.3.0~ynh1"
|
||||
|
||||
maintainers = []
|
||||
|
||||
|
@ -23,7 +23,7 @@ ldap = false
|
|||
sso = false
|
||||
|
||||
disk = "50M"
|
||||
ram.build = "50M"
|
||||
ram.build = "250M"
|
||||
ram.runtime = "50M"
|
||||
|
||||
[install]
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ ynh_multimedia_build_main_dir
|
|||
#=================================================
|
||||
# INCREASE INOTIFY'S LIMITS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Increasing inotify's limits..."
|
||||
ynh_script_progression --message="Increasing inotify's limits..." --weight=1
|
||||
|
||||
# Increase the maximum number of files inotify can monitor.
|
||||
cp -a ../conf/90-inotify_minidlna.conf /etc/sysctl.d/
|
||||
|
@ -70,7 +70,7 @@ ynh_store_file_checksum --file="/etc/minidlna.conf"
|
|||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900"
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ ynh_exec_fully_quiet yunohost firewall disallow UDP 1900
|
|||
#=================================================
|
||||
# REMOVE VARIOUS FILES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing various files..."
|
||||
ynh_script_progression --message="Removing various files..." --weight=1
|
||||
|
||||
if [ -e "/etc/sysctl.d/90-inotify_minidlna.conf" ]; then
|
||||
ynh_secure_remove --file="/etc/sysctl.d/90-inotify_minidlna.conf"
|
||||
|
|
|
@ -30,7 +30,7 @@ ynh_multimedia_build_main_dir
|
|||
#=================================================
|
||||
# RESTORE VARIOUS FILES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring various files..."
|
||||
ynh_script_progression --message="Restoring various files..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="/etc/sysctl.d/90-inotify_minidlna.conf"
|
||||
if ! IS_PACKAGE_CHECK # LXC doesn't allow sysctl to play with kernel options.
|
||||
|
@ -40,17 +40,18 @@ fi
|
|||
# Delete the current config of minidlna, in order to replace it by the version from the backup
|
||||
ynh_secure_remove --file="/etc/minidlna.conf"
|
||||
ynh_restore_file --origin_path="/etc/minidlna.conf"
|
||||
|
||||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..."
|
||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app.log"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
# If overwrite_settings doesn't exist, create it
|
||||
if [ -z "$overwrite_settings" ]; then
|
||||
|
@ -34,7 +34,7 @@ fi
|
|||
|
||||
# If friendly_name doesn't exist, create it
|
||||
if [ -z "$friendly_name" ]; then
|
||||
friendly_name="Yunohost DLNA"
|
||||
friendly_name="YunoHost DLNA"
|
||||
ynh_app_setting_set --app=$app --key=friendly_name --value=$friendly_name
|
||||
fi
|
||||
|
||||
|
@ -90,7 +90,7 @@ fi
|
|||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue