mirror of
https://github.com/YunoHost-Apps/tvheadend_ynh.git
synced 2024-10-01 13:34:50 +02:00
57760bf039
* Update upstream version to 4.3.1979 * Add libdvbcsa dependency * Fix dependancies * Add --force-confold to dpkg * Add noninteractive param * Use new tvheadend config file * Update install and remove script * Add missing conf_dir variable * Fix superuser pemrissions * Update backup and restore * Fix manifest warning * Fix other linter warnings * Fix linter advices * Auto-update README * Fix config file * Fix no subpath config * Fix upgrade script concerning no subpath * Update change_url script * Remove log stuff (Tvhedand use journalctl) * Remove alias line in nginx conf * Use debconf-set-selections for superuser config file * Update check_process * Bump to 4.3.1979~ynh6 * Auto-update README Co-authored-by: Yunohost-Bot <>
55 lines
1.9 KiB
Bash
55 lines
1.9 KiB
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# GENERIC START
|
|
#=================================================
|
|
# IMPORT GENERIC HELPERS
|
|
#=================================================
|
|
|
|
source ../settings/scripts/_common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
#=================================================
|
|
# MANAGE SCRIPT FAILURE
|
|
#=================================================
|
|
|
|
ynh_abort_if_errors
|
|
|
|
#=================================================
|
|
# LOAD SETTINGS
|
|
#=================================================
|
|
ynh_print_info --message="Loading installation settings..."
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
|
superuser=$(ynh_app_setting_get --app=$app --key=superuser)
|
|
password=$(ynh_app_setting_get --app=$app --key=password)
|
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|
conf_dir=$(ynh_app_setting_get --app=$app --key=conf_dir)
|
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
|
stream_port=$(ynh_app_setting_get --app=$app --key=stream_port)
|
|
|
|
#=================================================
|
|
# DECLARE DATA AND CONF FILES TO BACKUP
|
|
#=================================================
|
|
ynh_print_info --message="Declaring files to be backed up..."
|
|
|
|
#=================================================
|
|
# BACKUP THE APP MAIN DIR AND CONFIG FILES
|
|
#=================================================
|
|
|
|
ynh_backup --src_path="/etc/default/tvheadend"
|
|
ynh_backup --src_path="$final_path"
|
|
|
|
#=================================================
|
|
# BACKUP THE NGINX CONFIGURATION
|
|
#=================================================
|
|
|
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
|
#=================================================
|
|
# END OF SCRIPT
|
|
#=================================================
|
|
ynh_print_info --message="Backup script completed for Tvheadend. (YunoHost will then actually copy those files to the archive)."
|