summarylogtreecommitdiffstats
path: root/install_storm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install_storm.sh')
-rw-r--r--install_storm.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/install_storm.sh b/install_storm.sh
new file mode 100644
index 000000000000..2b357fe4bd58
--- /dev/null
+++ b/install_storm.sh
@@ -0,0 +1,18 @@
+post_install() {
+ systemd-sysusers storm.conf
+ systemd-tmpfiles --create storm.conf
+}
+
+post_upgrade(){
+ systemd-sysusers storm.conf
+ systemd-tmpfiles --create storm.conf
+}
+
+post_remove() {
+ if getent passwd storm >/dev/null 2>&1; then
+ userdel -f storm
+ fi
+ if getent group storm >/dev/null 2>&1; then
+ groupdel -f storm
+ fi
+}