Commit b5e72c0c authored by Lucas Moura's avatar Lucas Moura

Add postinst script to set apprecommender database

parent 8e5b454c
set -e
apprec --init 2>/dev/null
apprec --train 2>/dev/null || true
chgrp -R apprec /var/lib/apprecommender 2>/dev/null ||
addgroup --system apprec
chgrp -R apprec /var/lib/apprecommender
chown -R apprec /var/lib/apprecommender 2>/dev/null ||
adduser --system --home /usr/share/apprec --shell /bin/sh --no-create-home --disabled-password --ingroup apprec apprec
chown -R apprec /var/lib/apprecommender
exit 0
......@@ -3,6 +3,7 @@ apprecommender (0.6.4-1) UNRELEASED; urgency=medium
* New upstream release (Closes: #831217)
* Add patch to change database install location
* Add crontab to keep updating apprecommender database daily
* Add postinst script to set apprecommender database
-- Lucas Albuquerque Medeiros de Moura <> Tue, 02 Aug 2016 00:03:50 -0300
......@@ -17,7 +17,8 @@ Vcs-Browser:
Package: apprecommender
Architecture: all
Depends: apt-xapian-index,
Depends: adduser,
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