diff options
author | Dimitris Kiziridis | 2020-05-15 16:22:38 +0300 |
---|---|---|
committer | Dimitris Kiziridis | 2020-05-15 16:22:38 +0300 |
commit | fb8db1fac5fb3420ae7065b241b68ab6445bd485 (patch) | |
tree | e5360d5de7988482b1b29e09e0addf4ef994908a /storm.install | |
parent | a495623d608174d5a9b150ccf25e060a13b4094e (diff) | |
download | aur-fb8db1fac5fb3420ae7065b241b68ab6445bd485.tar.gz |
sanitize pkgbuild
Diffstat (limited to 'storm.install')
-rw-r--r-- | storm.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/storm.install b/storm.install new file mode 100644 index 000000000000..a63a2ea91d06 --- /dev/null +++ b/storm.install @@ -0,0 +1,22 @@ +post_install() { + systemd-sysusers storm.conf + systemd-tmpfiles --create storm.conf +} + +post_upgrade(){ + systemd-sysusers storm.conf + systemd-tmpfiles --create storm.conf + + echo "Moving to Storm 1.0 is not a rolling upgrade." + echo "Have a look at the following JIRA report for migration hints:" + echo " https://issues.apache.org/jira/browse/STORM-1710" +} + +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 +} |