From 1102dbb45ce5bd5c2522151d3b1b825686ad5781 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Thu, 27 Sep 2018 09:21:26 +0200 Subject: :ambulance: Change dirnames to match each other --- bin/runDev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/runDev.sh b/bin/runDev.sh index 568f00f..e0e70bc 100755 --- a/bin/runDev.sh +++ b/bin/runDev.sh @@ -6,7 +6,7 @@ if [ "$#" -gt "1" ]; then node app.js $1 else mkdir -p tmp - mkdir -p tmp/usrData + mkdir -p tmp/userdata mkdir -p tmp/logs node app.js "$PWD/tmp/" fi -- cgit v1.2.3 From 513ec74bdf240015a618cfd0b39557076e3f18af Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Thu, 27 Sep 2018 09:22:03 +0200 Subject: :hankey: Workaround for not getting the python lib to run as non-root --- bin/luxcena-neo.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/luxcena-neo.sh b/bin/luxcena-neo.sh index 4467d06..9bcf125 100755 --- a/bin/luxcena-neo.sh +++ b/bin/luxcena-neo.sh @@ -1,3 +1,8 @@ #!/bin/bash -runuser -l pi -c "export NODE_ENV=production; node ~/luxcena-neo-install/src/app.js" +# We want to eventually run the server as another user than root. But right now, +# the python script needs to be run as root, and since the server is starting them +# the server needs root as well. + +#runuser -l pi -c "export NODE_ENV=production; node ~/luxcena-neo-install/src/app.js" +export NODE_ENV=production; node /home/pi/luxcena-neo-install/src/app.js -- cgit v1.2.3