20240515
This commit is contained in:
parent
c72fb8b625
commit
654ff2f496
30 changed files with 265 additions and 15 deletions
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