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

Update postinst script

parent 270872cd
set -e
apprec --init 2>/dev/null
apprec --train 2>/dev/null || true
if [ ! -d /var/lib/apprecommender ]; then
mkdir /var/lib/apprecommender
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
runuser -c "apprec --init" apprec
runuser -c "apprec --train" apprec
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