diff --git a/server-ce/package/upstart/sharelatex-chat b/server-ce/package/upstart/sharelatex-chat index 6f33cdf277..c9abcf64d0 100644 --- a/server-ce/package/upstart/sharelatex-chat +++ b/server-ce/package/upstart/sharelatex-chat @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-clsi b/server-ce/package/upstart/sharelatex-clsi index 9fa4e3cba9..577392a124 100644 --- a/server-ce/package/upstart/sharelatex-clsi +++ b/server-ce/package/upstart/sharelatex-clsi @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-docstore b/server-ce/package/upstart/sharelatex-docstore index 6cf35a1ed6..4a93d74afb 100644 --- a/server-ce/package/upstart/sharelatex-docstore +++ b/server-ce/package/upstart/sharelatex-docstore @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-document-updater b/server-ce/package/upstart/sharelatex-document-updater index f0a6cb356c..3cd58e3661 100644 --- a/server-ce/package/upstart/sharelatex-document-updater +++ b/server-ce/package/upstart/sharelatex-document-updater @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-filestore b/server-ce/package/upstart/sharelatex-filestore index 9aacb585b0..2cefd29ce5 100644 --- a/server-ce/package/upstart/sharelatex-filestore +++ b/server-ce/package/upstart/sharelatex-filestore @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-spelling b/server-ce/package/upstart/sharelatex-spelling index 4e9f36f394..cdad8b20ea 100644 --- a/server-ce/package/upstart/sharelatex-spelling +++ b/server-ce/package/upstart/sharelatex-spelling @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-tags b/server-ce/package/upstart/sharelatex-tags index d075865f1b..340bad2748 100644 --- a/server-ce/package/upstart/sharelatex-tags +++ b/server-ce/package/upstart/sharelatex-tags @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-template b/server-ce/package/upstart/sharelatex-template index 9270388370..e9b58d9838 100644 --- a/server-ce/package/upstart/sharelatex-template +++ b/server-ce/package/upstart/sharelatex-template @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-track-changes b/server-ce/package/upstart/sharelatex-track-changes index 1e7df4980b..95c9f57b4c 100644 --- a/server-ce/package/upstart/sharelatex-track-changes +++ b/server-ce/package/upstart/sharelatex-track-changes @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file diff --git a/server-ce/package/upstart/sharelatex-web b/server-ce/package/upstart/sharelatex-web index 122115a5fb..92cbf0cb0b 100644 --- a/server-ce/package/upstart/sharelatex-web +++ b/server-ce/package/upstart/sharelatex-web @@ -23,6 +23,6 @@ script LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid - chdir /var/www/sharelatex/$SERVICE + cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1 end script \ No newline at end of file