debmaker/ressources/joplin/rootfs-server/DEBIAN/postinst
thomas 55beb0e2e3 Another refactor
merge joplin and joplin-server
2022-02-28 23:26:47 +01:00

8 lines
490 B
Bash
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
id joplin-server &> /dev/null || useradd joplin-server -r -s /bin/false -md /var/lib/joplin-server
## issue https://github.com/laurent22/joplin/issues/5980
[ ! -e /usr/lib/joplin-server/server/temp/ ] && mkdir /usr/lib/joplin-server/server/temp/
[ ! -e /usr/lib/joplin-server/server/logs/ ] && mkdir /usr/lib/joplin-server/server/logs/
chown joplin-server:joplin-server /usr/lib/joplin-server/server/temp/
chown joplin-server:joplin-server /usr/lib/joplin-server/server/logs/