Commit d67b2e5d7fd43dd8717aee963c48475255d8b225
Exists in
master
and in
29 other branches
Merge branch 'master' of gitlab.com:noosfero/noosfero
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
etc/init.d/noosfero
@@ -54,10 +54,10 @@ fi | @@ -54,10 +54,10 @@ fi | ||
54 | ###################### | 54 | ###################### |
55 | 55 | ||
56 | main_script() { | 56 | main_script() { |
57 | - cd $NOOSFERO_DIR | ||
58 | if [ "$NOOSFERO_USER" != "$USER" ]; then | 57 | if [ "$NOOSFERO_USER" != "$USER" ]; then |
59 | - su $NOOSFERO_USER -l -c "./script/production $1" | 58 | + su $NOOSFERO_USER -l -c "cd $NOOSFERO_DIR && ./script/production $1" |
60 | else | 59 | else |
60 | + cd $NOOSFERO_DIR | ||
61 | ./script/production $1 | 61 | ./script/production $1 |
62 | fi | 62 | fi |
63 | } | 63 | } |