Magellan Linux

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

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

revision 2602 by niro, Fri Sep 18 13:01:16 2015 UTC revision 2642 by niro, Thu Oct 8 10:23:56 2015 UTC
# Line 31  help_storefront_session() Line 31  help_storefront_session()
31   mecho "   print - prints all local configured sessions"   mecho "   print - prints all local configured sessions"
32   mecho "   query - get sessionlist of the farm from given [server]"   mecho "   query - get sessionlist of the farm from given [server]"
33   mecho   mecho
34   mecho "set storefront.session [action] [name] [session] [store] [user] [domain] [password]"   mecho "set storefront.session [action] [name] [session] [store] [user] [domain] [password] [autostart]"
35   mecho "  Adds or delets a storefront session."   mecho "  Adds or delets a storefront session."
36   mecho "  Available actions:"   mecho "  Available actions:"
37   mecho "   add        - adds a new storefront session"   mecho "   add        - adds a new storefront session"
# Line 43  help_storefront_session() Line 43  help_storefront_session()
43   mecho "   user       - user inside the session - optional"   mecho "   user       - user inside the session - optional"
44   mecho "   domain     - logon domain of the user - optional"   mecho "   domain     - logon domain of the user - optional"
45   mecho "   password   - password of the user - optional"   mecho "   password   - password of the user - optional"
46     mecho "   autostart  - session autostart 0=off 1=on- optional"
47  }  }
48    
49  set_storefront_session()  set_storefront_session()
# Line 50  set_storefront_session() Line 51  set_storefront_session()
51   local action="${CLASS_ARGV[0]}"   local action="${CLASS_ARGV[0]}"
52   local name="${CLASS_ARGV[1]}"   local name="${CLASS_ARGV[1]}"
53   local session="${CLASS_ARGV[2]}"   local session="${CLASS_ARGV[2]}"
54   local store_uri="${CLASS_ARGV[3]}"   local store="${CLASS_ARGV[3]}"
55   local user="${CLASS_ARGV[4]}"   local user="${CLASS_ARGV[4]}"
56   local domain="${CLASS_ARGV[5]}"   local domain="${CLASS_ARGV[5]}"
57   local password="${CLASS_ARGV[6]}"   local password="${CLASS_ARGV[6]}"
58     local autostart="${CLASS_ARGV[7]}"
59   local i   local i
60    
61   [[ -z ${action} ]] && help_storefront_session && return 1   [[ -z ${action} ]] && help_storefront_session && return 1
# Line 65  set_storefront_session() Line 67  set_storefront_session()
67   # and session   # and session
68   [[ -z ${session} ]] && help_storefront_session && return 1   [[ -z ${session} ]] && help_storefront_session && return 1
69   # and storefront uri   # and storefront uri
70   [[ -z ${store_uri} ]] && help_storefront_session && return 1   [[ -z ${store} ]] && help_storefront_session && return 1
71    
72   # create storefront session starter   # create storefront session starter
73   ${MCORE_LIBDIR}/storefront-session \   ${MCORE_LIBDIR}/storefront-session \
74   --add \   --add \
75   --name "${name}" \   --name "${name}" \
76   --session "${session}" \   --session "${session}" \
77   --store_uri "${store_uri}" \   --store "${store}" \
78   --user "${user}" \   --user "${user}" \
79   --domain "${domain}" \   --domain "${domain}" \
80   --password "${password}"   --password "${password}" \
81     --autostart "${autostart}"
82   ;;   ;;
83    
84   del)   del)

Legend:
Removed from v.2602  
changed lines
  Added in v.2642