64 |
local user="${CLASS_ARGV[4]}" |
local user="${CLASS_ARGV[4]}" |
65 |
local domain="${CLASS_ARGV[5]}" |
local domain="${CLASS_ARGV[5]}" |
66 |
local password="${CLASS_ARGV[6]}" |
local password="${CLASS_ARGV[6]}" |
67 |
|
local serverlist="${CLASS_ARGV[7]}" |
68 |
local i |
local i |
69 |
|
local opts |
70 |
|
|
71 |
[[ -z ${action} ]] && help_citrix_session && return 1 |
[[ -z ${action} ]] && help_citrix_session && return 1 |
72 |
|
|
87 |
*) help_citrix_session && return 1 ;; |
*) help_citrix_session && return 1 ;; |
88 |
esac |
esac |
89 |
|
|
90 |
|
if [[ -n ${serverlist} ]] |
91 |
|
then |
92 |
|
opts="--serverlist '${serverlist}'" |
93 |
|
fi |
94 |
|
|
95 |
# create citrix session file |
# create citrix session file |
96 |
${MCORE_LIBDIR}/citrix-session \ |
${MCORE_LIBDIR}/citrix-session \ |
97 |
--add \ |
--add \ |
100 |
--mode "${mode}" \ |
--mode "${mode}" \ |
101 |
--user "${user}" \ |
--user "${user}" \ |
102 |
--domain "${domain}" \ |
--domain "${domain}" \ |
103 |
--password "${password}" |
--password "${password}" \ |
104 |
|
${opts} |
105 |
;; |
;; |
106 |
|
|
107 |
del) |
del) |