diff options
author | Max Liebkies | 2017-10-10 16:55:18 +0200 |
---|---|---|
committer | Max Liebkies | 2017-10-10 16:56:31 +0200 |
commit | e1aefd6a4c5dbc6dc5d16796a9043aacd90628ac (patch) | |
tree | 80366561f8075e1f6271f31a568cff7c8c647739 /neo4j.install | |
parent | 8da74d11e8693d812891d02fbadcfa187f32e818 (diff) | |
download | aur-e1aefd6a4c5dbc6dc5d16796a9043aacd90628ac.tar.gz |
Update to 3.2.6
Diffstat (limited to 'neo4j.install')
-rw-r--r-- | neo4j.install | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/neo4j.install b/neo4j.install index b6ceecd0f58d..6ae39408e26f 100644 --- a/neo4j.install +++ b/neo4j.install @@ -1,15 +1,13 @@ post_install() { assert_user_and_group_exist - - chown -R neo4j.neo4j /var/lib/neo4j - chown -R neo4j.neo4j /var/log/neo4j - chown -R neo4j.neo4j /etc/neo4j + directory_permissions /usr/bin/systemd-tmpfiles --create neo4j.conf } post_upgrade() { assert_user_and_group_exist + directory_permissions } post_remove() { @@ -21,6 +19,13 @@ post_remove() { fi } +directory_permissions() { + chown -R neo4j.neo4j /etc/neo4j/certificates + chown -R neo4j.neo4j /var/lib/neo4j + chown -R neo4j.neo4j /var/log/neo4j + chown -R neo4j.neo4j /etc/neo4j +} + assert_user_and_group_exist() { if ! getent group neo4j >/dev/null; then groupadd --system neo4j |