blob: 92d93403dc03ea261050313145b9f3e7612ac154 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- bin/utils.orig 2012-04-24 15:37:50.000000000 -0300
+++ bin/utils 2012-04-24 15:29:25.000000000 -0300
@@ -121,8 +121,8 @@
checkwriteaccess() {
if [ $UID != 0 ] ; then
- if [ ! -w "$NEO4J_INSTANCE/data" ] ; then
- echo "ERROR: No write access to data/ directory, run either as user $NEO4J_USER or root"
+ if [ ! -w /var/db/neo4j ] ; then
+ echo "ERROR: No write access to /var/db/neo4j, run either as user $NEO4J_USER or root"
exit 1
fi
fi
@@ -301,12 +301,12 @@
# Runs before the server command, making sure that whatever should be in place is
# in place.
checkandrepairenv() {
- # Create data/log if missing, change owner if created.
- if [ ! -d "$NEO4J_HOME"/data/log ]; then
- echo "${NEO4J_HOME}/data/log was missing, recreating..."
- mkdir "$NEO4J_HOME"/data/log
+ # Create /var/db/neo4j/log if missing, change owner if created.
+ if [ ! -d /var/db/neo4j/log ]; then
+ echo "/var/db/neo4j/log was missing, recreating..."
+ mkdir /var/db/neo4j/log
if [ $UID == 0 ] ; then
- chown $NEO4J_USER "$NEO4J_HOME"/data/log
+ chown $NEO4J_USER /var/db/neo4j/log
fi
fi
}
|