mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
* Manifestv2 * add back user and install_dir to manifest * Update manifest.toml * rewrite update_version.sh in python for toml * Bump jellyfin-ffmpeg to 6.0-6 as #136 (Thanks @Tagadda) * Only add user to render group if not already * Remove line_match from ynh_systemd_actions : they actually just match when systemctl returns * Fix upgrade: uninstall previous packages * Installation of deb packages will overwrite the configuration files, so to prevent a warning we backup those files beforehand. * Test with a long sleep * Auto-update README * update_version: fix linter * Add ldap to update_version.py * Revert sleep 30 from debugging * Do not remove packages during upgrade * Fix upgrade again --------- Co-authored-by: Félix Piédallu <felix@piedallu.me> Co-authored-by: yunohost-bot <yunohost@yunohost.org>
50 lines
1.7 KiB
Bash
50 lines
1.7 KiB
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# GENERIC START
|
|
#=================================================
|
|
# 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
|
|
|
|
#=================================================
|
|
# DECLARE DATA AND CONF FILES TO BACKUP
|
|
#=================================================
|
|
ynh_print_info --message="Declaring files to be backed up..."
|
|
|
|
#=================================================
|
|
# BACKUP THE APP MAIN DIR
|
|
#=================================================
|
|
|
|
ynh_backup --src_path="$data_path"
|
|
ynh_backup --src_path="$config_path"
|
|
ynh_backup --src_path="/etc/default/jellyfin" --not_mandatory
|
|
|
|
#=================================================
|
|
# BACKUP THE NGINX CONFIGURATION
|
|
#=================================================
|
|
|
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
|
#=================================================
|
|
# SPECIFIC BACKUP
|
|
#=================================================
|
|
# BACKUP LOGROTATE
|
|
#=================================================
|
|
|
|
ynh_backup --src_path="/etc/logrotate.d/$app"
|
|
|
|
#=================================================
|
|
# BACKUP SYSTEMD
|
|
#=================================================
|
|
|
|
ynh_backup --src_path="/etc/systemd/system/jellyfin.service.d" --not_mandatory
|
|
|
|
#=================================================
|
|
# END OF SCRIPT
|
|
#=================================================
|
|
|
|
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|