From b6658e596932bd23fba0fd530e23a98796ce82c8 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 26 Jun 2007 15:33:04 +0000 Subject: [PATCH] Updated for desktoprc git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6703 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/scripts/desktoprc | 1 + contrib/scripts/start-gosa.sh | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 contrib/scripts/desktoprc 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 -- 2.30.2