]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Run as cloudron user
authorJohannes Zellner <johannes@nebulon.de>
Fri, 16 Oct 2015 14:47:29 +0000 (16:47 +0200)
committerJohannes Zellner <johannes@nebulon.de>
Fri, 16 Oct 2015 14:47:29 +0000 (16:47 +0200)
start.sh

index f4783587dc4b1cbc7921e656155a28d62184c142..440850dfa6ea08227ae48142a8ec77d05b9945e7 100755 (executable)
--- a/start.sh
+++ b/start.sh
@@ -4,5 +4,6 @@ set -eu
 
 export NODE_ENV=production
 
-cd /app/code
-node app.js /app/data
+chown -R cloudron:cloudron /app/data
+
+/usr/local/bin/gosu cloudron:cloudron || node /app/code/app.js /app/data