1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/watchdog_ynh.git synced 2024-06-22 05:42:53 +02:00

Fix install in CI

This commit is contained in:
Salamandar 2024-06-20 23:35:04 +02:00
parent e0a9acf4a4
commit 8dfb567892

View file

@ -13,7 +13,8 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Checking the hardware watchdog device presence..."
if [ ! -f /dev/watchdog ]; then
# Don't issue this error in CI
if [ "${PACKAGE_CHECK_EXEC:-0}" -eq 0 ] && [ ! -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."
fi