post_install() {
  mkdir -p /var/lib/location || true
  ln -s /usr/share/libloc-location/location.db /var/lib/location/database.db 2>/dev/null || true
}

post_upgrade() {
  post_install
}

pre_remove() {
  rm -f /var/lib/location/database.db 2>/dev/null
  rmdir /var/lib/location || true
}

# vim: ts=2 sw=2 et:
