Commit 1d8c9a7544ac494dff802804cfe6aaf948306e28
1 parent
82742464
Exists in
master
and in
22 other branches
Updated init.d script
Verify if /lib/init/vars.sh exists before source it
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
etc/init.d/noosfero
| @@ -36,7 +36,9 @@ NOOSFERO_USER=noosfero | @@ -36,7 +36,9 @@ NOOSFERO_USER=noosfero | ||
| 36 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME | 36 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME |
| 37 | 37 | ||
| 38 | # Load the VERBOSE setting and other rcS variables | 38 | # Load the VERBOSE setting and other rcS variables |
| 39 | -. /lib/init/vars.sh | 39 | +if [ -e /lib/init/vars.sh ]; then |
| 40 | + . /lib/init/vars.sh | ||
| 41 | +fi | ||
| 40 | 42 | ||
| 41 | if [ -z "$NOOSFERO_DIR" ] || [ -z "$NOOSFERO_USER" ]; then | 43 | if [ -z "$NOOSFERO_DIR" ] || [ -z "$NOOSFERO_USER" ]; then |
| 42 | echo "NOOSFERO_DIR or NOOSFERO_USER not defined, noosfero not being started." | 44 | echo "NOOSFERO_DIR or NOOSFERO_USER not defined, noosfero not being started." |