Commit 6173188b authored by Lucas Moura's avatar Lucas Moura

Verify if apprec command exists in cron file (Closes: #860441)

parent 4c62bc10
......@@ -2,6 +2,8 @@
set -e
CMD=/usr/bin/apprec
# Check if we're on battery
# This is exactly how apt-xapian-index handle the battery power
if which on_ac_power >/dev/null 2>&1; then
......@@ -17,7 +19,10 @@ fi
run_apprec_update()
{
runuser -s /bin/sh -c "/usr/bin/apprec --update" apprec
if [ -x "$CMD" ]
then
runuser -s /bin/sh -c "$CMD --update" apprec
fi
}
run_apprec_update > /dev/null
apprecommender (0.7.5-2) UNRELEASED; urgency=medium
* Verify if apprec command exists in cron file (Closes: #860441)
-- Lucas Albuquerque Medeiros de Moura <lucas.moura128@gmail.com> Mon, 17 Apr 2017 16:37:03 -0300
apprecommender (0.7.5-1) unstable; urgency=medium
[ Lucas Albuquerque Medeiros de Moura ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment