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 deletes 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" |
38 |
mecho " del - deletes storefront session with name [name]" |
mecho " del - deletes a storefront session named [name]" |
39 |
mecho " if no [name] given, all sessions will be deleted" |
mecho " if no [name] given, all sessions will be deleted" |
40 |
mecho |
mecho |
41 |
mecho " session - name of the Citrix session" |
mecho " session - name of the Citrix 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() |
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 |
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) |