diff options
author | ramon <ramongomez@us.es> | 2017-02-17 09:40:33 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-02-17 09:40:33 +0000 |
commit | 70c429f923b8cfa6ab3d32ffcbe5cbfa04d347b7 (patch) | |
tree | 1ff928d93eb2f802d9ed414eea0b526d346193e6 /server | |
parent | d55c26df3590291077844be646947a97477599a5 (diff) |
#768: Mostrar nombre real de {{{oglivecli}}} (para enlaces simbólicos).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5203 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server')
-rwxr-xr-x | server/bin/oglivecli | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/bin/oglivecli b/server/bin/oglivecli index 3fbaf3f6..a76bc5fb 100755 --- a/server/bin/oglivecli +++ b/server/bin/oglivecli @@ -409,7 +409,7 @@ local ISOFILE DIR # Main progrram. # Global constants definition. -PROG=$(basename $0) +PROG=$(basename $(realpath "$0")) OPENGNSYS=/opt/opengnsys DOWNLOADDIR=$OPENGNSYS/lib DOWNLOADURL="http://opengnsys.es/downloads" @@ -418,9 +418,7 @@ DEFOGLIVE=ogLive INFOFILE=$OPENGNSYS/etc/ogliveinfo.json # Access control. -if [ "$USER" != "root" ]; then - raiseError access "Need to be root." -fi +[ "$USER" = "root" ] || raiseError access "Need to be root." # Check dependencies. JQ=$(which jq 2>/dev/null) || raiseError notfound "Need to install \"jq\"." which sponge &>/dev/null || raiseError notfound "Need to install \"moreutils\"." |