Commit 8571cfc99713b88003f7c16c612f0b9e05c9f3f4
1 parent
9ff5859c
Exists in
master
and in
19 other branches
Fix Stoa daemon paths and script name variables
Comments in the script tell the user to use /etc/default/noosfero to set variables used in the script, but it looks for them in /etc/default/stoa-auth-daemon. Also, the file name variable should be atoa-auth-server.
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
plugins/stoa/script/stoa-auth-server
... | ... | @@ -25,7 +25,7 @@ |
25 | 25 | # PATH should only include /usr/* if it runs after the mountnfs.sh script |
26 | 26 | PATH=/sbin:/usr/sbin:/bin:/usr/bin |
27 | 27 | DESC="Stoa authentication deamon" |
28 | -NAME=stoa-auth-daemon | |
28 | +NAME=stoa-auth-server | |
29 | 29 | SCRIPTNAME=/etc/init.d/$NAME |
30 | 30 | |
31 | 31 | # default values |
... | ... | @@ -33,8 +33,8 @@ NOOSFERO_DIR=/var/lib/noosfero/current |
33 | 33 | NOOSFERO_USER=noosfero |
34 | 34 | |
35 | 35 | # Read configuration variable file if it is present |
36 | -if [ -r /etc/default/$NAME ]; then | |
37 | - . /etc/default/$NAME | |
36 | +if [ -r /etc/default/noosfero ]; then | |
37 | + . /etc/default/noosfero | |
38 | 38 | else |
39 | 39 | # for running from development setup, or from git with the script symlinked |
40 | 40 | script=$(readlink -f $0) | ... | ... |