Commit 3060221e authored by Lucas Moura's avatar Lucas Moura

Update postinst script

parent 270872cd
#!/bin/sh
set -e
update-apt-xapian-index
apprec --init 2>/dev/null
apprec --train 2>/dev/null || true
if [ ! -d /var/lib/apprecommender ]; then
mkdir /var/lib/apprecommender
fi
chgrp -R apprec /var/lib/apprecommender 2>/dev/null ||
{
......@@ -17,6 +17,10 @@ chown -R apprec /var/lib/apprecommender 2>/dev/null ||
chown -R apprec /var/lib/apprecommender
}
update-apt-xapian-index
runuser -c "apprec --init" apprec
runuser -c "apprec --train" apprec
#DEBHELPER#
exit 0
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