Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/citrix/storefront-resolver.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2356 by niro, Mon Aug 24 14:11:26 2015 UTC revision 2391 by niro, Thu Aug 27 07:38:22 2015 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
 CMD="$1"  
 USER="$2"  
 PASS="$3"  
 DOMAIN="$4"  
 APP="$5"  
   
3  BROWSER=""  BROWSER=""
4  : ${STOREFRONT_STORE=""}  : ${STOREFRONT_STORE=""}
5    
6    source @@SYSCONFDIR@@/mcore/citrix.conf
7    
8  if [[ -z ${STOREFRONT_STORE} ]]  if [[ -z ${STOREFRONT_STORE} ]]
9  then  then
10   source @@SYSCONFDIR@@/mcore/citrix.conf   STOREFRONT_STORE="${DEFAULT_STOREFRONT_STORE}"
11  fi  fi
12    
13  # prefer storebrowse  # prefer storebrowse
# Line 92  storefront_launch() Line 88  storefront_launch()
88   "${BROWSER}" -L "${APP}" -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STOREFRONT_STORE}"   "${BROWSER}" -L "${APP}" -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STOREFRONT_STORE}"
89  }  }
90    
91    # very basic getops
92    for argv in $*
93    do
94     case $1 in
95     --enumerate|--launch|--liststore|--addstore|--delstore) CMD="${1//--}" ;;
96     --user) shift; USER="$1" ;;
97     --password) shift; PASS="$1" ;;
98     --domain) shift; DOMAIN="$1" ;;
99     --app) shift; APP="$1" ;;
100     --store) shift; STOREFRONT_STORE="$1" ;;  #override all envvars and configuration vars
101     esac
102     shift
103    done
104    
105    [[ -n ${CMD} ]] || die "No CMD given"
106    
107  case ${CMD} in  case ${CMD} in
108   enumerate)   enumerate)
109   # enumerate apps   # enumerate apps

Legend:
Removed from v.2356  
changed lines
  Added in v.2391