diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2018-09-27 09:22:03 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2018-09-27 09:22:03 +0200 |
commit | 513ec74bdf240015a618cfd0b39557076e3f18af (patch) | |
tree | 344286067237aea9bbbc9f7bf39f7a5e7d3afbe3 /bin/luxcena-neo.sh | |
parent | 1102dbb45ce5bd5c2522151d3b1b825686ad5781 (diff) | |
download | Luxcena-Neo-513ec74bdf240015a618cfd0b39557076e3f18af.tar.gz Luxcena-Neo-513ec74bdf240015a618cfd0b39557076e3f18af.zip |
:hankey: Workaround for not getting the python lib to run as non-root
Diffstat (limited to 'bin/luxcena-neo.sh')
-rwxr-xr-x | bin/luxcena-neo.sh | 7 |
1 files changed, 6 insertions, 1 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 |