diff options
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 |