mirror of
https://github.com/YunoHost-Apps/watchdog_ynh.git
synced 2024-06-22 05:42:53 +02:00
cleaning
This commit is contained in:
parent
4406d13977
commit
09f37b6497
3 changed files with 1 additions and 14 deletions
|
@ -6,7 +6,7 @@ name = "Watchdog"
|
||||||
description.en = "Automatically reboot your server in case of freeze"
|
description.en = "Automatically reboot your server in case of freeze"
|
||||||
description.fr = "Redémarre automatiquement votre serveur en cas de plantage"
|
description.fr = "Redémarre automatiquement votre serveur en cas de plantage"
|
||||||
|
|
||||||
version = "5.16~ynh1"
|
version = "5.16~ynh2"
|
||||||
|
|
||||||
maintainers = ["tituspijean"]
|
maintainers = ["tituspijean"]
|
||||||
|
|
||||||
|
|
|
@ -11,17 +11,12 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# WATCHDOG DEVICE CHECK
|
# WATCHDOG DEVICE CHECK
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression --message="Checking the hardware watchdog device presence..."
|
ynh_script_progression --message="Checking the hardware watchdog device presence..."
|
||||||
|
|
||||||
if [ ! -f /dev/watchdog ]; then
|
if [ ! -f /dev/watchdog ]; then
|
||||||
ynh_die --message="Your server doesn't seem to have a '/dev/watchdog' device, this certainly means that it has no hardware watchdog device. However, this package is only relevant if such a device exists, we're sorry."
|
ynh_die --message="Your server doesn't seem to have a '/dev/watchdog' device, this certainly means that it has no hardware watchdog device. However, this package is only relevant if such a device exists, we're sorry."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# INSTALL DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,14 +9,6 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STANDARD UPGRADE STEPS
|
|
||||||
#=================================================
|
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STOP SYSTEMD SERVICE
|
# STOP SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue