summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install13
1 files changed, 13 insertions, 0 deletions
diff --git a/install b/install
new file mode 100644
index 000000000000..a209aaf8b143
--- /dev/null
+++ b/install
@@ -0,0 +1,13 @@
+post_install() {
+ if [ -z "$(grep ^safirusers: /etc/group)" ]; then
+ groupadd --system safirusers &>/dev/null
+ fi
+
+ chown root:safirusers var/lib/safir-sdk-core
+ systemd-tmpfiles --create safir-sdk-core.conf
+}
+
+pre_remove() {
+ rm -rf var/lib/safir-sdk-core
+ rm -rf var/run/safir-sdk-core
+}