aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJakob Stendahl <14180120+JakobST1n@users.noreply.github.com>2018-09-27 09:23:19 +0200
committerGitHub <noreply@github.com>2018-09-27 09:23:19 +0200
commit1afb32f103bb7ebbc9ffa678ac6f5948a5ec54b1 (patch)
treee174e0d7d8f8d6b1fca5c7286f54cb506710008b /bin
parent9c1b110189556287a25dd96ecd6a0bc886b99d01 (diff)
parent513ec74bdf240015a618cfd0b39557076e3f18af (diff)
downloadLuxcena-Neo-1afb32f103bb7ebbc9ffa678ac6f5948a5ec54b1.tar.gz
Luxcena-Neo-1afb32f103bb7ebbc9ffa678ac6f5948a5ec54b1.zip
Merge pull request #2 from JakobST1n/dev
:ambulance: Hotfix for some dirnames and things, workaround root-issue
Diffstat (limited to 'bin')
-rwxr-xr-xbin/luxcena-neo.sh7
-rwxr-xr-xbin/runDev.sh2
2 files changed, 7 insertions, 2 deletions
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
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