1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/audiobookshelf_ynh.git synced 2024-09-03 18:06:19 +02:00
This commit is contained in:
ericgaspar 2022-04-16 10:24:43 +02:00
parent 1d6c9cc67e
commit 3b4242833d
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 31 additions and 20 deletions

14
doc/DESCRIPTION_fr.md Normal file
View file

@ -0,0 +1,14 @@
Audiobookshelf est un serveur de livres audio auto-hébergé pour gérer et lire vos livres audio.
### Caractéristiques
* Entièrement **open-source**, y compris l'[application Android et iOS](https://github.com/advplyr/audiobookshelf-app) *(en version bêta)*
* Diffusez tous les formats de livres audio à la volée
* Prise en charge multi-utilisateurs avec autorisations personnalisées
* Conserve la progression par utilisateur et se synchronise sur tous les appareils
* Détecte automatiquement les mises à jour de la bibliothèque, pas besoin de re-scanner
* Téléchargez des livres audio avec dossiers de glisser-déposer
* Sauvegardez vos métadonnées et sauvegardes quotidiennes automatisées
* Application Web progressive (PWA)
* Prise en charge de Chromecast sur l'application Web
* Récupère les métadonnées et les pochettes à partir de plusieurs sources

8
doc/DISCLAIMER_fr.md Normal file
View file

@ -0,0 +1,8 @@
## Limites
* Audiobookshelf ne peut être installé que sur un domaine dédié
* Pas de prise en charge LDAP
## Connection
* L'utilisateur par défaut est `root` sans mot de passe

View file

@ -24,20 +24,15 @@ app=$YNH_APP_INSTANCE_NAME
#=================================================
# LOAD SETTINGS
#=================================================
ynh_script_progression --message="Loading installation settings..." --time --weight=1
ynh_script_progression --message="Loading installation settings..." --weight=1
# Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
# Add settings here as needed by your application
#db_name=$(ynh_app_setting_get --app=$app --key=db_name)
#db_user=$db_name
#db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd)
#=================================================
# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up the app before changing its URL (may take a while)..." --time --weight=1
ynh_script_progression --message="Backing up the app before changing its URL (may take a while)..." --weight=1
# Backup the current version of the app
ynh_backup_before_upgrade
@ -72,14 +67,14 @@ fi
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --time --weight=1
ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression --message="Updating NGINX web server configuration..." --time --weight=1
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
@ -105,25 +100,19 @@ then
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ...
#=================================================
#=================================================
# GENERIC FINALISATION
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#=================================================
# RELOAD NGINX
#=================================================
ynh_script_progression --message="Reloading NGINX web server..." --time --weight=1
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload
@ -131,4 +120,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --time --last
ynh_script_progression --message="Change of URL completed for $app" --last

View file

@ -127,9 +127,9 @@ yunohost service add $app --description="A short description of the app" --log="
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
ynh_script_progression --message="Starting a systemd service..." --time --weight=3
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --timeout="120"
#=================================================
# RELOAD NGINX