summarylogtreecommitdiffstats
path: root/lazylibrarian.install
diff options
context:
space:
mode:
Diffstat (limited to 'lazylibrarian.install')
-rw-r--r--lazylibrarian.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/lazylibrarian.install b/lazylibrarian.install
new file mode 100644
index 000000000000..13665d4c36eb
--- /dev/null
+++ b/lazylibrarian.install
@@ -0,0 +1,15 @@
+CP_USER="lazylibrarian"
+CP_GROUP="lazylibrarian"
+CP_DIR="/var/lib/lazylibrarian"
+
+## arg 1: the new package version
+post_install() {
+ systemd-sysusers lazylibrarian.conf
+ chown -R ${CP_USER}:${CP_GROUP} ${CP_DIR}
+ echo " >> If you want a custom user or path for LazyLibrarian, remember to edit the service file as well."
+}
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ chown -R ${CP_USER}:${CP_GROUP} ${CP_DIR}
+}