20240515
This commit is contained in:
parent
c72fb8b625
commit
654ff2f496
30 changed files with 265 additions and 15 deletions
0
ressources/paperless-ngx/rootfs/DEBIAN/changelog
Normal file
0
ressources/paperless-ngx/rootfs/DEBIAN/changelog
Normal file
1
ressources/paperless-ngx/rootfs/DEBIAN/conffiles
Normal file
1
ressources/paperless-ngx/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/default/paperless-ngx
|
8
ressources/paperless-ngx/rootfs/DEBIAN/control
Normal file
8
ressources/paperless-ngx/rootfs/DEBIAN/control
Normal 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.
|
15
ressources/paperless-ngx/rootfs/DEBIAN/postinst
Executable file
15
ressources/paperless-ngx/rootfs/DEBIAN/postinst
Executable 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}
|
Loading…
Add table
Add a link
Reference in a new issue