From: cajus Date: Tue, 26 Jun 2007 15:33:04 +0000 (+0000) Subject: Updated for desktoprc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b6658e596932bd23fba0fd530e23a98796ce82c8;p=gosa.git Updated for desktoprc git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6703 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/scripts/desktoprc b/contrib/scripts/desktoprc new file mode 100644 index 000000000..839c056e7 --- /dev/null +++ b/contrib/scripts/desktoprc @@ -0,0 +1 @@ +URL="https://www.gosa-project.org/demo/2.5/" diff --git a/contrib/scripts/start-gosa.sh b/contrib/scripts/start-gosa.sh index db48be6a8..3fb6d0051 100755 --- a/contrib/scripts/start-gosa.sh +++ b/contrib/scripts/start-gosa.sh @@ -1,12 +1,21 @@ #!/bin/sh # Start script for GOsa to be started via gecko based browsers +[ -r /etc/gosa/desktoprc ] && . /etc/gosa/desktoprc +[ -r $HOME/.gosa-desktop ] && . $HOME/.gosa-desktop + url="" -if [ $# -ne 1 ]; then +if [ $# -ne 1 -a -z "$URL" ]; then echo "Usage: $(basename $0) " exit 1 fi +if [ $# -ne 1 ]; then + url="$URL" +else + url="$1" +fi + # What browser are we using? result="" for browser in iceweasel firefox mozilla; do