summarylogtreecommitdiffstats
path: root/neo4j.install
diff options
context:
space:
mode:
Diffstat (limited to 'neo4j.install')
-rw-r--r--neo4j.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/neo4j.install b/neo4j.install
index 97733e3ed09a..a094e1a34578 100644
--- a/neo4j.install
+++ b/neo4j.install
@@ -15,10 +15,13 @@ post_install() {
chown -R neo4j.neo4j /etc/neo4j
/usr/bin/systemd-tmpfiles --create neo4j.conf
+
+ warn_about_java_home
}
post_upgrade() {
assert_user_and_group_exist
+ warn_about_java_home
}
post_remove() {
@@ -29,3 +32,14 @@ post_remove() {
groupdel neo4j
fi
}
+
+warn_about_java_home() {
+ echo "------------------------------"
+ echo "--- ACHTUNG ACHTUNG ALARM! ---"
+ echo "------------------------------"
+ echo "Before starting the Neo4j service, please edit"
+ echo "'/usr/lib/systemd/system/neo4j.service', changing"
+ echo "'Environment=JAVA_HOME=/your/java/home/path' to your"
+ echo "actual JAVA_HOME path. Do not forget to uncomment"
+ echo "that line too and then run 'systemctl daemon-reload'."
+}