summarylogtreecommitdiffstats
path: root/neutron.install
diff options
context:
space:
mode:
authorErhan SAHIN2015-06-12 00:33:05 +0300
committerErhan SAHIN2015-06-12 00:33:05 +0300
commit0d217b4c2dc7e626897b6415700a6f3fa7affe75 (patch)
tree4a945acdae3e6ec88d666369f4bd3edb86d49f9e /neutron.install
downloadaur-neutron-icehouse.tar.gz
AUR4 Migration
Diffstat (limited to 'neutron.install')
-rw-r--r--neutron.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/neutron.install b/neutron.install
new file mode 100644
index 00000000000..819751fda9a
--- /dev/null
+++ b/neutron.install
@@ -0,0 +1,21 @@
+post_install() {
+ getent group neutron &>/dev/null || groupadd neutron >/dev/null
+ getent passwd neutron &>/dev/null || useradd -d /var/lib/neutron -g neutron -s /bin/false neutron >/dev/null
+
+ chmod 755 /etc/neutron
+ chown -R root:neutron /etc/neutron
+ chown root:root /etc/neutron/rootwrap.conf
+ chown -R root:root /etc/neutron/rootwrap.d
+ chown neutron:neutron /var/lib/neutron
+ chown neutron /var/log/neutron
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ getent passwd neutron &>/dev/null && userdel neutron >/dev/null
+ getent group neutron &>/dev/null && groupdel neutron >/dev/null
+ true
+}