Commit bda87f25aec12753c64a0ce903d955801333f193
1 parent
3734298f
Exists in
master
and in
27 other branches
noosfero-plugins: resist incomplete /etc/default/noosfero
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
script/noosfero-plugins
@@ -6,7 +6,9 @@ program_name=$(basename $0) | @@ -6,7 +6,9 @@ program_name=$(basename $0) | ||
6 | 6 | ||
7 | if [ -e /etc/default/noosfero ]; then | 7 | if [ -e /etc/default/noosfero ]; then |
8 | . /etc/default/noosfero | 8 | . /etc/default/noosfero |
9 | -else | 9 | +fi |
10 | + | ||
11 | +if [ -z "$NOOSFERO_DIR"]; then | ||
10 | this_script=$(readlink -f $0) | 12 | this_script=$(readlink -f $0) |
11 | NOOSFERO_DIR=$(dirname $this_script | xargs dirname) | 13 | NOOSFERO_DIR=$(dirname $this_script | xargs dirname) |
12 | fi | 14 | fi |