Magellan Linux

Contents of /alx-src/branches/alxconf-060/bin/storefront-resolver.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6746 - (show annotations) (download) (as text)
Thu Jul 16 15:00:16 2015 UTC (8 years, 9 months ago) by niro
File MIME type: application/x-sh
File size: 669 byte(s)
-added storefront-resolver program
1 #!/bin/bash
2
3 CMD="$1"
4 USER="$2"
5 PASS="$3"
6 DOMAIN="$4"
7 APP="$5"
8
9 BROWSER=""
10 STORE=""
11
12 source /etc/alxconfig-ng/storefront.rc
13
14 # prefer storebrowse
15 if [[ -e ${ICAROOT}/util/storebrowse ]]
16 then
17 BROWSER=${ICAROOT}/util/storebrowse
18
19 # use old pnabrowse
20 elif [[ -e ${ICAROOT}/util/pnabrowse ]]
21 then
22 BROWSER=${ICAROOT}/util/pnabrowse
23 else
24 echo "No Citrix browser found."
25 exit 1
26 fi
27
28 case ${CMD} in
29 enumerate)
30 # enumerate apps
31 "${BROWSER}" -E -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STORE}"
32 ;;
33
34 launch)
35 # launch apps
36 "${BROWSER}" -L "${APP}" -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STORE}"
37 ;;
38
39 *)
40 echo "Unknown command '${CMD}'."
41 exit 1
42 ;;
43 esac