Macear
07/24/2023, 6:07 AMselect 1
from hash
where path = '/usr/local/update/bin/upd.sh'
and sha256 in ('6e8ada37393aba10bbbd27074e10e27f4d1edaf2c37ec8eec3e2ee7d1054d55d');
But I’ve no clue on how to return 1 in case of file absence.Keith Swagler
07/24/2023, 2:43 PMSELECT 1 WHERE NOT EXISTS ( SELECT 1 from file where path = '/usr/local/update/bin/upd.sh');Kathy Satterlee
07/24/2023, 2:44 PMSELECT 1
Where EXISTS (SELECT 1
FROM hash
WHERE path = '/usr/local/update/bin/upd.sh'
AND sha256 IN ('6e8ada37393aba10bbbd27074e10e27f4d1edaf2c37ec8eec3e2ee7d1054d55d'))
OR NOT EXISTS (SELECT 1
FROM hash
WHERE path = '/usr/local/update/bin/upd.sh');Macear
07/25/2023, 10:16 AM