debmaker/ressources/joplin-server/rootfs/DEBIAN/postinst

9 lines
490 B
Plaintext
Raw Permalink Normal View History

2022-01-23 21:49:01 +01:00
#!/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
2022-02-03 22:51:24 +01:00
[ ! -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/
2022-01-23 21:49:01 +01:00
chown joplin-server:joplin-server /usr/lib/joplin-server/server/temp/
chown joplin-server:joplin-server /usr/lib/joplin-server/server/logs/