summarylogtreecommitdiffstats
path: root/nimiq.install
diff options
context:
space:
mode:
Diffstat (limited to 'nimiq.install')
-rw-r--r--nimiq.install7
1 files changed, 7 insertions, 0 deletions
diff --git a/nimiq.install b/nimiq.install
new file mode 100644
index 000000000000..cf2c931bc112
--- /dev/null
+++ b/nimiq.install
@@ -0,0 +1,7 @@
+post_install() {
+ # We don't know uid and gid at runtime. So we invoke systemd-sysusers here.
+ systemd-sysusers nimiq.conf
+ chown -R nimiq:nimiq var/lib/nimiq
+ chgrp -R nimiq etc/nimiq
+ chmod -R g+r etc/nimiq
+}