Code

Updated for desktoprc
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 15:33:04 +0000 (15:33 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 15:33:04 +0000 (15:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6703 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/scripts/desktoprc [new file with mode: 0644]
contrib/scripts/start-gosa.sh

diff --git a/contrib/scripts/desktoprc b/contrib/scripts/desktoprc
new file mode 100644 (file)
index 0000000..839c056
--- /dev/null
@@ -0,0 +1 @@
+URL="https://www.gosa-project.org/demo/2.5/"
index db48be6a851ce006d03a207135e3862ab96afb48..3fb6d0051ea8131e1a3b7df823355198a2047e13 100755 (executable)
@@ -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) <URL>"
        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