This commit is contained in:
Thomas Legay 2024-05-15 10:20:52 +02:00
parent c72fb8b625
commit 654ff2f496
30 changed files with 265 additions and 15 deletions

View file

@ -0,0 +1 @@
/etc/default/paperless-ngx

View file

@ -0,0 +1,8 @@
Package: paperless-ngx
Version: %VERSION%
Section: contrib
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@lgy.fr>
Depends: python3, python3-pip, python3-dev, imagemagick, fonts-liberation, gnupg, libpq-dev, default-libmysqlclient-dev, pkg-config, libmagic-dev, mime-support, libzbar0, poppler-utils, unpaper, ghostscript, icc-profiles-free, qpdf, liblept5, libxml2, pngquant, zlib1g, tesseract-ocr, gcc
Description: Paperless-ngx is a document management system that transforms your physical documents into a searchable online archive so you can keep, well, less paper.

View file

@ -0,0 +1,15 @@
#!/bin/bash
APP=paperless-ngx
HOMEDIR=/var/lib/paperless-ngx
LOGDIR=/var/log/paperless-ngx
CACHEDIR=/var/cache/paperless-ngx
[ -d ${HOMEDIR} ] || mkdir -p ${HOMEDIR}
id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d ${HOMEDIR}
chown ${APP}:${APP} ${HOMEDIR}
[ -d ${LOGDIR} ] || mkdir -p ${LOGDIR}
chown ${APP}:${APP} ${LOGDIR}
[ -d ${CACHEDIR} ] || mkdir -p ${CACHEDIR}
chown ${APP}:${APP} ${CACHEDIR}