mirror of
https://github.com/YunoHost-Apps/tvheadend_ynh.git
synced 2024-10-01 13:34:50 +02:00
[+] Prevent Tvheadend being upgraded throught APT (apt-mark hold)
This commit is contained in:
parent
339cf0840a
commit
9a9d7cca48
5 changed files with 30 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
"en": "Tvheadend is a TV streaming server and recorder for Linux, FreeBSD and Android supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, ISDB-T, IPTV, SAT>IP and HDHomeRun as input sources",
|
||||
"fr": "Tvheadend est un serveur streaming TV pour Linux et supporte les sources d'entrées DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, ISDB-T, IPTV, SAT>IP et HDHomeRun"
|
||||
},
|
||||
"version": "4.2.8-34~ynh2",
|
||||
"version": "4.2.8-34~ynh3",
|
||||
"url": "https://tvheadend.org",
|
||||
"license": "free",
|
||||
"maintainer": {
|
||||
|
|
|
@ -167,7 +167,14 @@ ynh_script_progression --message="Reloading nginx web server..." --weight=1
|
|||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# START TVHEADEND SERVICE (H)
|
||||
# PREVENT TVHEADEND BEING UPGRADED THROUGHT APT (H)
|
||||
#=================================================
|
||||
ynh_script_progression --message="Prevent $app being upgraded throught APT..." --weight=1
|
||||
|
||||
apt-mark hold tvheadend
|
||||
|
||||
#=================================================
|
||||
# START TVHEADEND SERVICE (I)
|
||||
#=================================================
|
||||
ynh_script_progression --message="Starting $app service..." --weight=1
|
||||
|
||||
|
|
|
@ -25,13 +25,20 @@ stream_port=$(ynh_app_setting_get --app=$app --key=stream_port)
|
|||
#=================================================
|
||||
# STANDARD REMOVE
|
||||
#=================================================
|
||||
# STOP AND REMOVE TVHEADEND SERVICE (H)
|
||||
# STOP AND REMOVE TVHEADEND SERVICE (I)
|
||||
#=================================================
|
||||
ynh_script_progression --message="Stopping $app service..." --weight=1
|
||||
|
||||
# Remove the dedicated systemd config
|
||||
ynh_remove_systemd_config
|
||||
|
||||
#=================================================
|
||||
# UNHOLD TVHEADEND FROM APT (H)
|
||||
#=================================================
|
||||
ynh_script_progression --message="Diasble prevent $app being upgraded throught APT..." --weight=1
|
||||
|
||||
apt-mark unhold tvheadend
|
||||
|
||||
#=================================================
|
||||
# REMOVE SERVICE FROM ADMIN PANEL (G)
|
||||
#=================================================
|
||||
|
|
|
@ -134,7 +134,14 @@ ynh_script_progression --message="Reloading nginx web server..." --weight=1
|
|||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# START TVHEADEND SERVICE (G)
|
||||
# PREVENT TVHEADEND BEING UPGRADED THROUGHT APT (G)
|
||||
#=================================================
|
||||
ynh_script_progression --message="Prevent $app being upgraded throught APT..." --weight=1
|
||||
|
||||
apt-mark hold tvheadend
|
||||
|
||||
#=================================================
|
||||
# START TVHEADEND SERVICE (I)
|
||||
#=================================================
|
||||
ynh_script_progression --message="Starting $app service..." --weight=1
|
||||
|
||||
|
|
|
@ -88,6 +88,11 @@ then
|
|||
fi
|
||||
|
||||
|
||||
#=================================================
|
||||
# PREVENT TVHEADEND BEING UPGRADED THROUGHT APT
|
||||
#=================================================
|
||||
apt-mark hold tvheadend
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue