mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
Ajout le service mopidy dans l'administration
This commit is contained in:
parent
c274136434
commit
6315e15d54
3 changed files with 17 additions and 6 deletions
|
@ -31,6 +31,8 @@ Il se peut que vous n'ayez pas de son, je vous invite à vous renseigner sur [la
|
||||||
|
|
||||||
### Pour les bidouilleurs
|
### Pour les bidouilleurs
|
||||||
|
|
||||||
|
Vous pouvez arrêter le service depuis la page "Services" dans l'interface d'administration de YunoHost.
|
||||||
|
|
||||||
Les fichiers de configuration se trouve dans le répertoire /usr/share/mopidy/conf.d
|
Les fichiers de configuration se trouve dans le répertoire /usr/share/mopidy/conf.d
|
||||||
|
|
||||||
*Les lignes de commandes relative à Mopidy*
|
*Les lignes de commandes relative à Mopidy*
|
||||||
|
@ -50,7 +52,7 @@ Activer ou désactiver Mopidy
|
||||||
`$ sudo systemctl disable mopidy`
|
`$ sudo systemctl disable mopidy`
|
||||||
|
|
||||||
Si vous ajoutez de nouveaux fichiers dans le répertoire local, rescanner votre répertoire.
|
Si vous ajoutez de nouveaux fichiers dans le répertoire local, rescanner votre répertoire.
|
||||||
`$ sudo mopidy local scan`
|
`$ mopidy local scan`
|
||||||
|
|
||||||
## Why Mopidy?
|
## Why Mopidy?
|
||||||
|
|
||||||
|
@ -82,6 +84,8 @@ You may have no sound, check [Mopidy's documentation] (https://docs.mopidy.com/e
|
||||||
|
|
||||||
### For hackers
|
### For hackers
|
||||||
|
|
||||||
|
You can stop the service from the "Services" page in the YunoHost administration interface.
|
||||||
|
|
||||||
The configuration files can be found in the directory /usr/share/mopidy/conf.d
|
The configuration files can be found in the directory /usr/share/mopidy/conf.d
|
||||||
|
|
||||||
*Commandline for Mopidy*
|
*Commandline for Mopidy*
|
||||||
|
@ -97,7 +101,7 @@ Enable or disable Mopidy
|
||||||
`$ sudo systemctl disable mopidy`
|
`$ sudo systemctl disable mopidy`
|
||||||
|
|
||||||
If you add new files to the local directory, rescan your directory.
|
If you add new files to the local directory, rescan your directory.
|
||||||
`$ sudo mopidy local scan`
|
`$ mopidy local scan`
|
||||||
|
|
||||||
## Versionning
|
## Versionning
|
||||||
|
|
||||||
|
|
|
@ -143,8 +143,11 @@ sudo yunohost firewall allow TCP 6680
|
||||||
# Access public for curl
|
# Access public for curl
|
||||||
ynh_app_setting_set $app unprotected_uris "/"
|
ynh_app_setting_set $app unprotected_uris "/"
|
||||||
|
|
||||||
# Reload SSOwat configuration
|
|
||||||
sudo yunohost app ssowatconf
|
|
||||||
|
|
||||||
# Reload Nginx and regenerate SSOwat conf
|
# Reload Nginx and regenerate SSOwat conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
||||||
|
# Add Mopidy into YunoHost services
|
||||||
|
sudo yunohost service add mopidy --log "/var/log/mopidy/mopidy.log"
|
||||||
|
|
||||||
|
# Reload SSOwat configuration
|
||||||
|
sudo yunohost app ssowatconf
|
|
@ -38,4 +38,8 @@ sudo cp -a "${backup_dir}/var/lib/$app" "/var/lib/$app"
|
||||||
# Set permissions
|
# Set permissions
|
||||||
sudo chown -R www-data: $final_path
|
sudo chown -R www-data: $final_path
|
||||||
|
|
||||||
|
# Restart service and add service into YunoHost
|
||||||
|
sudo service mopidy restart
|
||||||
|
sudo yunohost service add mopidy --log "/var/log/mopidy/mopidy.log"
|
||||||
|
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
Loading…
Add table
Reference in a new issue