Statistics
| Branch: | Tag: | Revision:

one / install.sh @ df6b93e6

History | View | Annotate | Download (70.5 KB)

1
#!/bin/bash
2

    
3
# -------------------------------------------------------------------------- #
4
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org)             #
5
#                                                                            #
6
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
7
# not use this file except in compliance with the License. You may obtain    #
8
# a copy of the License at                                                   #
9
#                                                                            #
10
# http://www.apache.org/licenses/LICENSE-2.0                                 #
11
#                                                                            #
12
# Unless required by applicable law or agreed to in writing, software        #
13
# distributed under the License is distributed on an "AS IS" BASIS,          #
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
15
# See the License for the specific language governing permissions and        #
16
# limitations under the License.                                             #
17
#--------------------------------------------------------------------------- #
18

    
19
#-------------------------------------------------------------------------------
20
# Install program for OpenNebula. It will install it relative to
21
# $ONE_LOCATION if defined with the -d option, otherwise it'll be installed
22
# under /. In this case you may specified the oneadmin user/group, so you do
23
# not need run the OpenNebula daemon with root privileges
24
#-------------------------------------------------------------------------------
25

    
26
#-------------------------------------------------------------------------------
27
# COMMAND LINE PARSING
28
#-------------------------------------------------------------------------------
29
usage() {
30
 echo
31
 echo "Usage: install.sh [-u install_user] [-g install_group] [-k keep conf]"
32
 echo "                  [-d ONE_LOCATION] [-c occi|ec2] [-r] [-h]"
33
 echo
34
 echo "-u: user that will run opennebula, defaults to user executing install.sh"
35
 echo "-g: group of the user that will run opennebula, defaults to user"
36
 echo "    executing install.sh"
37
 echo "-k: keep configuration files of existing OpenNebula installation, useful"
38
 echo "    when upgrading. This flag should not be set when installing"
39
 echo "    OpenNebula for the first time"
40
 echo "-d: target installation directory, if not defined it'd be root. Must be"
41
 echo "    an absolute path."
42
 echo "-c: install client utilities: OpenNebula cli, occi and ec2 client files"
43
 echo "-s: install OpenNebula Sunstone"
44
 echo "-o: install OpenNebula Zones (OZones)"
45
 echo "-r: remove Opennebula, only useful if -d was not specified, otherwise"
46
 echo "    rm -rf \$ONE_LOCATION would do the job"
47
 echo "-l: creates symlinks instead of copying files, useful for development"
48
 echo "-h: prints this help"
49
}
50
#-------------------------------------------------------------------------------
51

    
52
TEMP_OPT=`getopt -o hkrlcsou:g:d: -n 'install.sh' -- "$@"`
53

    
54
if [ $? != 0 ] ; then
55
    usage
56
    exit 1
57
fi
58

    
59
eval set -- "$TEMP_OPT"
60

    
61
INSTALL_ETC="yes"
62
UNINSTALL="no"
63
LINK="no"
64
CLIENT="no"
65
SUNSTONE="no"
66
OZONES="no"
67
ONEADMIN_USER=`id -u`
68
ONEADMIN_GROUP=`id -g`
69
SRC_DIR=$PWD
70

    
71
while true ; do
72
    case "$1" in
73
        -h) usage; exit 0;;
74
        -k) INSTALL_ETC="no"   ; shift ;;
75
        -r) UNINSTALL="yes"   ; shift ;;
76
        -l) LINK="yes" ; shift ;;
77
        -c) CLIENT="yes"; INSTALL_ETC="no" ; shift ;;
78
        -s) SUNSTONE="yes"; shift ;;
79
        -o) OZONES="yes"; shift ;;
80
        -u) ONEADMIN_USER="$2" ; shift 2;;
81
        -g) ONEADMIN_GROUP="$2"; shift 2;;
82
        -d) ROOT="$2" ; shift 2 ;;
83
        --) shift ; break ;;
84
        *)  usage; exit 1 ;;
85
    esac
86
done
87

    
88
#-------------------------------------------------------------------------------
89
# Definition of locations
90
#-------------------------------------------------------------------------------
91

    
92
CONF_LOCATION="$HOME/.one"
93

    
94
if [ -z "$ROOT" ] ; then
95
    BIN_LOCATION="/usr/bin"
96
    LIB_LOCATION="/usr/lib/one"
97
    ETC_LOCATION="/etc/one"
98
    LOG_LOCATION="/var/log/one"
99
    VAR_LOCATION="/var/lib/one"
100
    SUNSTONE_LOCATION="$LIB_LOCATION/sunstone"
101
    OZONES_LOCATION="$LIB_LOCATION/ozones"
102
    SYSTEM_DS_LOCATION="$VAR_LOCATION/datastores/0"
103
    DEFAULT_DS_LOCATION="$VAR_LOCATION/datastores/1"
104
    RUN_LOCATION="/var/run/one"
105
    LOCK_LOCATION="/var/lock/one"
106
    INCLUDE_LOCATION="/usr/include"
107
    SHARE_LOCATION="/usr/share/one"
108
    MAN_LOCATION="/usr/share/man/man1"
109

    
110
    if [ "$CLIENT" = "yes" ]; then
111
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION"
112

    
113
        DELETE_DIRS=""
114

    
115
        CHOWN_DIRS=""
116
    elif [ "$SUNSTONE" = "yes" ]; then
117
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION \
118
                   $SUNSTONE_LOCATION $ETC_LOCATION"
119

    
120
        DELETE_DIRS="$MAKE_DIRS"
121

    
122
        CHOWN_DIRS=""
123
    elif [ "$OZONES" = "yes" ]; then
124
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION $OZONES_LOCATION \
125
                    $ETC_LOCATION"
126

    
127
        DELETE_DIRS="$MAKE_DIRS"
128

    
129
        CHOWN_DIRS=""
130
    else
131
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION $VAR_LOCATION \
132
                   $INCLUDE_LOCATION $SHARE_LOCATION \
133
                   $LOG_LOCATION $RUN_LOCATION $LOCK_LOCATION \
134
                   $SYSTEM_DS_LOCATION $DEFAULT_DS_LOCATION $MAN_LOCATION"
135

    
136
        DELETE_DIRS="$LIB_LOCATION $ETC_LOCATION $LOG_LOCATION $VAR_LOCATION \
137
                     $RUN_LOCATION $SHARE_DIRS"
138

    
139
        CHOWN_DIRS="$LOG_LOCATION $VAR_LOCATION $RUN_LOCATION $LOCK_LOCATION"
140
    fi
141

    
142
else
143
    BIN_LOCATION="$ROOT/bin"
144
    LIB_LOCATION="$ROOT/lib"
145
    ETC_LOCATION="$ROOT/etc"
146
    VAR_LOCATION="$ROOT/var"
147
    SUNSTONE_LOCATION="$LIB_LOCATION/sunstone"
148
    OZONES_LOCATION="$LIB_LOCATION/ozones"
149
    SYSTEM_DS_LOCATION="$VAR_LOCATION/datastores/0"
150
    DEFAULT_DS_LOCATION="$VAR_LOCATION/datastores/1"
151
    INCLUDE_LOCATION="$ROOT/include"
152
    SHARE_LOCATION="$ROOT/share"
153
    MAN_LOCATION="$ROOT/share/man/man1"
154

    
155
    if [ "$CLIENT" = "yes" ]; then
156
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION"
157

    
158
        DELETE_DIRS="$MAKE_DIRS"
159
    elif [ "$SUNSTONE" = "yes" ]; then
160
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION \
161
                   $SUNSTONE_LOCATION $ETC_LOCATION"
162

    
163
        DELETE_DIRS="$MAKE_DIRS"
164
    elif [ "$OZONES" = "yes" ]; then
165
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION $OZONES_LOCATION \
166
                   $ETC_LOCATION"
167

    
168
        DELETE_DIRS="$MAKE_DIRS"
169
    else
170
        MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $ETC_LOCATION $VAR_LOCATION \
171
                   $INCLUDE_LOCATION $SHARE_LOCATION $SYSTEM_DS_LOCATION \
172
                   $DEFAULT_DS_LOCATION $MAN_LOCATION $OZONES_LOCATION"
173

    
174
        DELETE_DIRS="$MAKE_DIRS"
175

    
176
        CHOWN_DIRS="$ROOT"
177
    fi
178

    
179
    CHOWN_DIRS="$ROOT"
180
fi
181

    
182
SHARE_DIRS="$SHARE_LOCATION/examples"
183

    
184
ETC_DIRS="$ETC_LOCATION/im_ec2 \
185
          $ETC_LOCATION/vmm_ec2 \
186
          $ETC_LOCATION/vmm_exec \
187
          $ETC_LOCATION/hm \
188
          $ETC_LOCATION/auth \
189
          $ETC_LOCATION/auth/certificates \
190
          $ETC_LOCATION/ec2query_templates \
191
          $ETC_LOCATION/occi_templates \
192
          $ETC_LOCATION/cli"
193

    
194
LIB_DIRS="$LIB_LOCATION/ruby \
195
          $LIB_LOCATION/ruby/OpenNebula \
196
          $LIB_LOCATION/ruby/zona \
197
          $LIB_LOCATION/ruby/cloud/ \
198
          $LIB_LOCATION/ruby/cloud/econe \
199
          $LIB_LOCATION/ruby/cloud/econe/views \
200
          $LIB_LOCATION/ruby/cloud/occi \
201
          $LIB_LOCATION/ruby/cloud/CloudAuth \
202
          $LIB_LOCATION/ruby/onedb \
203
          $LIB_LOCATION/mads \
204
          $LIB_LOCATION/sh \
205
          $LIB_LOCATION/ruby/cli \
206
          $LIB_LOCATION/ruby/cli/one_helper"
207

    
208
VAR_DIRS="$VAR_LOCATION/remotes \
209
          $VAR_LOCATION/remotes/im \
210
          $VAR_LOCATION/remotes/im/kvm.d \
211
          $VAR_LOCATION/remotes/im/xen.d \
212
          $VAR_LOCATION/remotes/im/vmware.d \
213
          $VAR_LOCATION/remotes/im/ganglia.d \
214
          $VAR_LOCATION/remotes/vmm \
215
          $VAR_LOCATION/remotes/vmm/kvm \
216
          $VAR_LOCATION/remotes/vmm/xen \
217
          $VAR_LOCATION/remotes/vmm/vmware \
218
          $VAR_LOCATION/remotes/vnm \
219
          $VAR_LOCATION/remotes/vnm/802.1Q \
220
          $VAR_LOCATION/remotes/vnm/dummy \
221
          $VAR_LOCATION/remotes/vnm/ebtables \
222
          $VAR_LOCATION/remotes/vnm/fw \
223
          $VAR_LOCATION/remotes/vnm/ovswitch \
224
          $VAR_LOCATION/remotes/vnm/vmware \
225
          $VAR_LOCATION/remotes/tm/ \
226
          $VAR_LOCATION/remotes/tm/dummy \
227
          $VAR_LOCATION/remotes/tm/shared \
228
          $VAR_LOCATION/remotes/tm/qcow2 \
229
          $VAR_LOCATION/remotes/tm/ssh \
230
          $VAR_LOCATION/remotes/tm/vmware \
231
          $VAR_LOCATION/remotes/tm/iscsi \
232
          $VAR_LOCATION/remotes/tm/lvm \
233
          $VAR_LOCATION/remotes/hooks \
234
          $VAR_LOCATION/remotes/hooks/ft \
235
          $VAR_LOCATION/remotes/datastore \
236
          $VAR_LOCATION/remotes/datastore/dummy \
237
          $VAR_LOCATION/remotes/datastore/fs \
238
          $VAR_LOCATION/remotes/datastore/vmware \
239
          $VAR_LOCATION/remotes/datastore/iscsi \
240
          $VAR_LOCATION/remotes/datastore/lvm \
241
          $VAR_LOCATION/remotes/auth \
242
          $VAR_LOCATION/remotes/auth/plain \
243
          $VAR_LOCATION/remotes/auth/ssh \
244
          $VAR_LOCATION/remotes/auth/x509 \
245
          $VAR_LOCATION/remotes/auth/ldap \
246
          $VAR_LOCATION/remotes/auth/server_x509 \
247
          $VAR_LOCATION/remotes/auth/server_cipher \
248
          $VAR_LOCATION/remotes/auth/quota \
249
          $VAR_LOCATION/remotes/auth/dummy"
250

    
251
SUNSTONE_DIRS="$SUNSTONE_LOCATION/models \
252
               $SUNSTONE_LOCATION/models/OpenNebulaJSON \
253
               $SUNSTONE_LOCATION/public \
254
               $SUNSTONE_LOCATION/public/js \
255
               $SUNSTONE_LOCATION/public/js/plugins \
256
               $SUNSTONE_LOCATION/public/js/user-plugins \
257
               $SUNSTONE_LOCATION/public/css \
258
               $SUNSTONE_LOCATION/public/locale \
259
               $SUNSTONE_LOCATION/public/locale/en_US \
260
               $SUNSTONE_LOCATION/public/locale/ru \
261
               $SUNSTONE_LOCATION/public/locale/it_IT \
262
               $SUNSTONE_LOCATION/public/locale/pt_PT \
263
               $SUNSTONE_LOCATION/public/locale/fr_FR \
264
               $SUNSTONE_LOCATION/public/vendor \
265
               $SUNSTONE_LOCATION/public/vendor/jQueryLayout \
266
               $SUNSTONE_LOCATION/public/vendor/dataTables \
267
               $SUNSTONE_LOCATION/public/vendor/jQueryUI \
268
               $SUNSTONE_LOCATION/public/vendor/jQueryUI/images \
269
               $SUNSTONE_LOCATION/public/vendor/jQuery \
270
               $SUNSTONE_LOCATION/public/vendor/jGrowl \
271
               $SUNSTONE_LOCATION/public/vendor/flot \
272
               $SUNSTONE_LOCATION/public/vendor/fileuploader \
273
               $SUNSTONE_LOCATION/public/images \
274
               $SUNSTONE_LOCATION/templates \
275
               $SUNSTONE_LOCATION/views"
276

    
277
OZONES_DIRS="$OZONES_LOCATION/lib \
278
             $OZONES_LOCATION/lib/OZones \
279
             $OZONES_LOCATION/models \
280
             $OZONES_LOCATION/templates \
281
             $OZONES_LOCATION/public \
282
             $OZONES_LOCATION/public/vendor \
283
             $OZONES_LOCATION/public/vendor/jQuery \
284
             $OZONES_LOCATION/public/vendor/jQueryLayout \
285
             $OZONES_LOCATION/public/vendor/dataTables \
286
             $OZONES_LOCATION/public/vendor/jQueryUI \
287
             $OZONES_LOCATION/public/vendor/jQueryUI/images \
288
             $OZONES_LOCATION/public/vendor/jGrowl \
289
             $OZONES_LOCATION/public/js \
290
             $OZONES_LOCATION/public/js/plugins \
291
             $OZONES_LOCATION/public/images \
292
             $OZONES_LOCATION/public/css"
293

    
294
SELF_SERVICE_DIRS="\
295
                 $LIB_LOCATION/ruby/cloud/occi/ui \
296
                 $LIB_LOCATION/ruby/cloud/occi/ui/templates \
297
                 $LIB_LOCATION/ruby/cloud/occi/ui/views \
298
                 $LIB_LOCATION/ruby/cloud/occi/ui/public \
299
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/css \
300
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/customize \
301
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/images \
302
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/js \
303
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/js/plugins \
304
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/locale \
305
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/locale/en_US \
306
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/locale/es_ES \
307
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/locale/fr_FR \
308
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/locale/fr_CA \
309
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor \
310
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQueryLayout \
311
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/dataTables \
312
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQueryUI \
313
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQueryUI/images \
314
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQuery \
315
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jGrowl \
316
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/flot \
317
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/crypto-js \
318
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/fileuploader \
319
                 $LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/xml2json"
320

    
321
OZONES_CLIENT_DIRS="$LIB_LOCATION/ruby \
322
                 $LIB_LOCATION/ruby/OpenNebula \
323
                 $LIB_LOCATION/ruby/cli \
324
                 $LIB_LOCATION/ruby/cli/ozones_helper \
325
                 $LIB_LOCATION/ruby/zona"
326

    
327
LIB_ECO_CLIENT_DIRS="$LIB_LOCATION/ruby \
328
                 $LIB_LOCATION/ruby/OpenNebula \
329
                 $LIB_LOCATION/ruby/cloud/ \
330
                 $LIB_LOCATION/ruby/cloud/econe"
331

    
332
LIB_OCCI_CLIENT_DIRS="$LIB_LOCATION/ruby \
333
                 $LIB_LOCATION/ruby/OpenNebula \
334
                 $LIB_LOCATION/ruby/cloud/occi"
335

    
336
LIB_OCA_CLIENT_DIRS="$LIB_LOCATION/ruby \
337
                 $LIB_LOCATION/ruby/OpenNebula"
338

    
339
LIB_CLI_CLIENT_DIRS="$LIB_LOCATION/ruby/cli \
340
                     $LIB_LOCATION/ruby/cli/one_helper"
341

    
342
CONF_CLI_DIRS="$ETC_LOCATION/cli"
343

    
344
if [ "$CLIENT" = "yes" ]; then
345
    MAKE_DIRS="$MAKE_DIRS $LIB_ECO_CLIENT_DIRS $LIB_OCCI_CLIENT_DIRS \
346
               $LIB_OCA_CLIENT_DIRS $LIB_CLI_CLIENT_DIRS $CONF_CLI_DIRS \
347
               $ETC_LOCATION $OZONES_CLIENT_DIRS $SELF_SERVICE_DIRS"
348
elif [ "$SUNSTONE" = "yes" ]; then
349
    MAKE_DIRS="$MAKE_DIRS $SUNSTONE_DIRS $LIB_OCA_CLIENT_DIRS"
350
elif [ "$OZONES" = "yes" ]; then
351
    MAKE_DIRS="$MAKE_DIRS $OZONES_DIRS $OZONES_CLIENT_DIRS $LIB_OCA_CLIENT_DIRS"
352
else
353
    MAKE_DIRS="$MAKE_DIRS $SHARE_DIRS $ETC_DIRS $LIB_DIRS $VAR_DIRS \
354
                $OZONES_DIRS $OZONES_CLIENT_DIRS $SUNSTONE_DIRS $SELF_SERVICE_DIRS"
355
fi
356

    
357
#-------------------------------------------------------------------------------
358
#-------------------------------------------------------------------------------
359
# FILE DEFINITION, WHAT IS GOING TO BE INSTALLED AND WHERE
360
#-------------------------------------------------------------------------------
361
#-------------------------------------------------------------------------------
362
INSTALL_FILES=(
363
    BIN_FILES:$BIN_LOCATION
364
    INCLUDE_FILES:$INCLUDE_LOCATION
365
    LIB_FILES:$LIB_LOCATION
366
    RUBY_LIB_FILES:$LIB_LOCATION/ruby
367
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/OpenNebula
368
    MAD_RUBY_LIB_FILES:$LIB_LOCATION/ruby
369
    MAD_RUBY_LIB_FILES:$VAR_LOCATION/remotes
370
    MAD_SH_LIB_FILES:$LIB_LOCATION/sh
371
    MAD_SH_LIB_FILES:$VAR_LOCATION/remotes
372
    ONEDB_MIGRATOR_FILES:$LIB_LOCATION/ruby/onedb
373
    MADS_LIB_FILES:$LIB_LOCATION/mads
374
    IM_PROBES_FILES:$VAR_LOCATION/remotes/im
375
    IM_PROBES_KVM_FILES:$VAR_LOCATION/remotes/im/kvm.d
376
    IM_PROBES_XEN_FILES:$VAR_LOCATION/remotes/im/xen.d
377
    IM_PROBES_VMWARE_FILES:$VAR_LOCATION/remotes/im/vmware.d
378
    IM_PROBES_GANGLIA_FILES:$VAR_LOCATION/remotes/im/ganglia.d
379
    AUTH_SSH_FILES:$VAR_LOCATION/remotes/auth/ssh
380
    AUTH_X509_FILES:$VAR_LOCATION/remotes/auth/x509
381
    AUTH_LDAP_FILES:$VAR_LOCATION/remotes/auth/ldap
382
    AUTH_SERVER_X509_FILES:$VAR_LOCATION/remotes/auth/server_x509
383
    AUTH_SERVER_CIPHER_FILES:$VAR_LOCATION/remotes/auth/server_cipher
384
    AUTH_DUMMY_FILES:$VAR_LOCATION/remotes/auth/dummy
385
    AUTH_PLAIN_FILES:$VAR_LOCATION/remotes/auth/plain
386
    AUTH_QUOTA_FILES:$VAR_LOCATION/remotes/auth/quota
387
    VMM_EXEC_KVM_SCRIPTS:$VAR_LOCATION/remotes/vmm/kvm
388
    VMM_EXEC_XEN_SCRIPTS:$VAR_LOCATION/remotes/vmm/xen
389
    VMM_EXEC_VMWARE_SCRIPTS:$VAR_LOCATION/remotes/vmm/vmware
390
    TM_FILES:$VAR_LOCATION/remotes/tm
391
    TM_SHARED_FILES:$VAR_LOCATION/remotes/tm/shared
392
    TM_QCOW2_FILES:$VAR_LOCATION/remotes/tm/qcow2
393
    TM_SSH_FILES:$VAR_LOCATION/remotes/tm/ssh
394
    TM_VMWARE_FILES:$VAR_LOCATION/remotes/tm/vmware
395
    TM_ISCSI_FILES:$VAR_LOCATION/remotes/tm/iscsi
396
    TM_LVM_FILES:$VAR_LOCATION/remotes/tm/lvm
397
    TM_DUMMY_FILES:$VAR_LOCATION/remotes/tm/dummy
398
    DATASTORE_DRIVER_COMMON_SCRIPTS:$VAR_LOCATION/remotes/datastore/
399
    DATASTORE_DRIVER_DUMMY_SCRIPTS:$VAR_LOCATION/remotes/datastore/dummy
400
    DATASTORE_DRIVER_FS_SCRIPTS:$VAR_LOCATION/remotes/datastore/fs
401
    DATASTORE_DRIVER_VMWARE_SCRIPTS:$VAR_LOCATION/remotes/datastore/vmware
402
    DATASTORE_DRIVER_ISCSI_SCRIPTS:$VAR_LOCATION/remotes/datastore/iscsi
403
    DATASTORE_DRIVER_LVM_SCRIPTS:$VAR_LOCATION/remotes/datastore/lvm
404
    NETWORK_FILES:$VAR_LOCATION/remotes/vnm
405
    NETWORK_8021Q_FILES:$VAR_LOCATION/remotes/vnm/802.1Q
406
    NETWORK_DUMMY_FILES:$VAR_LOCATION/remotes/vnm/dummy
407
    NETWORK_EBTABLES_FILES:$VAR_LOCATION/remotes/vnm/ebtables
408
    NETWORK_FW_FILES:$VAR_LOCATION/remotes/vnm/fw
409
    NETWORK_OVSWITCH_FILES:$VAR_LOCATION/remotes/vnm/ovswitch
410
    NETWORK_VMWARE_FILES:$VAR_LOCATION/remotes/vnm/vmware
411
    EXAMPLE_SHARE_FILES:$SHARE_LOCATION/examples
412
    INSTALL_NOVNC_SHARE_FILE:$SHARE_LOCATION
413
    INSTALL_GEMS_SHARE_FILE:$SHARE_LOCATION
414
    HOOK_FT_FILES:$VAR_LOCATION/remotes/hooks/ft
415
    COMMON_CLOUD_LIB_FILES:$LIB_LOCATION/ruby/cloud
416
    CLOUD_AUTH_LIB_FILES:$LIB_LOCATION/ruby/cloud/CloudAuth
417
    ECO_LIB_FILES:$LIB_LOCATION/ruby/cloud/econe
418
    ECO_LIB_VIEW_FILES:$LIB_LOCATION/ruby/cloud/econe/views
419
    ECO_BIN_FILES:$BIN_LOCATION
420
    OCCI_LIB_FILES:$LIB_LOCATION/ruby/cloud/occi
421
    OCCI_BIN_FILES:$BIN_LOCATION
422
    MAN_FILES:$MAN_LOCATION
423
    CLI_LIB_FILES:$LIB_LOCATION/ruby/cli
424
    ONE_CLI_LIB_FILES:$LIB_LOCATION/ruby/cli/one_helper
425
)
426

    
427
INSTALL_CLIENT_FILES=(
428
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
429
    ECO_LIB_CLIENT_FILES:$LIB_LOCATION/ruby/cloud/econe
430
    ECO_BIN_CLIENT_FILES:$BIN_LOCATION
431
    COMMON_CLOUD_CLIENT_LIB_FILES:$LIB_LOCATION/ruby/cloud
432
    OCCI_LIB_CLIENT_FILES:$LIB_LOCATION/ruby/cloud/occi
433
    OCCI_BIN_CLIENT_FILES:$BIN_LOCATION
434
    CLI_BIN_FILES:$BIN_LOCATION
435
    CLI_LIB_FILES:$LIB_LOCATION/ruby/cli
436
    ONE_CLI_LIB_FILES:$LIB_LOCATION/ruby/cli/one_helper
437
    ETC_CLIENT_FILES:$ETC_LOCATION
438
    OZONES_BIN_CLIENT_FILES:$BIN_LOCATION
439
    OZONES_LIB_CLIENT_CLI_FILES:$LIB_LOCATION/ruby/cli
440
    OZONES_LIB_CLIENT_CLI_HELPER_FILES:$LIB_LOCATION/ruby/cli/ozones_helper
441
    OZONES_LIB_API_FILES:$LIB_LOCATION/ruby
442
    OZONES_LIB_API_ZONA_FILES:$LIB_LOCATION/ruby/zona
443
    CLI_CONF_FILES:$ETC_LOCATION/cli
444
    OCA_LIB_FILES:$LIB_LOCATION/ruby
445
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/OpenNebula
446
)
447

    
448
INSTALL_SUNSTONE_RUBY_FILES=(
449
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/OpenNebula
450
    OCA_LIB_FILES:$LIB_LOCATION/ruby
451
)
452

    
453
INSTALL_SUNSTONE_FILES=(
454
    SUNSTONE_FILES:$SUNSTONE_LOCATION
455
    SUNSTONE_BIN_FILES:$BIN_LOCATION
456
    SUNSTONE_MODELS_FILES:$SUNSTONE_LOCATION/models
457
    SUNSTONE_MODELS_JSON_FILES:$SUNSTONE_LOCATION/models/OpenNebulaJSON
458
    SUNSTONE_TEMPLATE_FILES:$SUNSTONE_LOCATION/templates
459
    SUNSTONE_VIEWS_FILES:$SUNSTONE_LOCATION/views
460
    SUNSTONE_PUBLIC_JS_FILES:$SUNSTONE_LOCATION/public/js
461
    SUNSTONE_PUBLIC_JS_PLUGINS_FILES:$SUNSTONE_LOCATION/public/js/plugins
462
    SUNSTONE_PUBLIC_CSS_FILES:$SUNSTONE_LOCATION/public/css
463
    SUNSTONE_PUBLIC_VENDOR_DATATABLES:$SUNSTONE_LOCATION/public/vendor/dataTables
464
    SUNSTONE_PUBLIC_VENDOR_JGROWL:$SUNSTONE_LOCATION/public/vendor/jGrowl
465
    SUNSTONE_PUBLIC_VENDOR_JQUERY:$SUNSTONE_LOCATION/public/vendor/jQuery
466
    SUNSTONE_PUBLIC_VENDOR_JQUERYUI:$SUNSTONE_LOCATION/public/vendor/jQueryUI
467
    SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES:$SUNSTONE_LOCATION/public/vendor/jQueryUI/images
468
    SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT:$SUNSTONE_LOCATION/public/vendor/jQueryLayout
469
    SUNSTONE_PUBLIC_VENDOR_FLOT:$SUNSTONE_LOCATION/public/vendor/flot
470
    SUNSTONE_PUBLIC_VENDOR_FILEUPLOADER:$SUNSTONE_LOCATION/public/vendor/fileuploader
471
    SUNSTONE_PUBLIC_IMAGES_FILES:$SUNSTONE_LOCATION/public/images
472
    SUNSTONE_PUBLIC_LOCALE_EN_US:$SUNSTONE_LOCATION/public/locale/en_US
473
    SUNSTONE_PUBLIC_LOCALE_RU:$SUNSTONE_LOCATION/public/locale/ru
474
    SUNSTONE_PUBLIC_LOCALE_IT_IT:$SUNSTONE_LOCATION/public/locale/it_IT
475
    SUNSTONE_PUBLIC_LOCALE_PT_PT:$SUNSTONE_LOCATION/public/locale/pt_PT
476
    SUNSTONE_PUBLIC_LOCALE_PT_PT:$SUNSTONE_LOCATION/public/locale/fr_FR
477
)
478

    
479
INSTALL_SUNSTONE_ETC_FILES=(
480
    SUNSTONE_ETC_FILES:$ETC_LOCATION
481
)
482

    
483
INSTALL_OZONES_RUBY_FILES=(
484
    OZONES_RUBY_LIB_FILES:$LIB_LOCATION/ruby
485
    RUBY_OPENNEBULA_LIB_FILES:$LIB_LOCATION/ruby/OpenNebula
486
)
487

    
488
INSTALL_OZONES_FILES=(
489
    OZONES_FILES:$OZONES_LOCATION
490
    OZONES_BIN_FILES:$BIN_LOCATION
491
    OZONES_MODELS_FILES:$OZONES_LOCATION/models
492
    OZONES_TEMPLATE_FILES:$OZONES_LOCATION/templates
493
    OZONES_LIB_FILES:$OZONES_LOCATION/lib
494
    OZONES_LIB_ZONE_FILES:$OZONES_LOCATION/lib/OZones
495
    OZONES_PUBLIC_VENDOR_JQUERY:$OZONES_LOCATION/public/vendor/jQuery
496
    OZONES_PUBLIC_VENDOR_DATATABLES:$OZONES_LOCATION/public/vendor/dataTables
497
    OZONES_PUBLIC_VENDOR_JGROWL:$OZONES_LOCATION/public/vendor/jGrowl
498
    OZONES_PUBLIC_VENDOR_JQUERYUI:$OZONES_LOCATION/public/vendor/jQueryUI
499
    OZONES_PUBLIC_VENDOR_JQUERYUIIMAGES:$OZONES_LOCATION/public/vendor/jQueryUI/images
500
    OZONES_PUBLIC_VENDOR_JQUERYLAYOUT:$OZONES_LOCATION/public/vendor/jQueryLayout
501
    OZONES_PUBLIC_JS_FILES:$OZONES_LOCATION/public/js
502
    OZONES_PUBLIC_IMAGES_FILES:$OZONES_LOCATION/public/images
503
    OZONES_PUBLIC_CSS_FILES:$OZONES_LOCATION/public/css
504
    OZONES_PUBLIC_JS_PLUGINS_FILES:$OZONES_LOCATION/public/js/plugins
505
    OZONES_BIN_CLIENT_FILES:$BIN_LOCATION
506
    OZONES_LIB_CLIENT_CLI_FILES:$LIB_LOCATION/ruby/cli
507
    OZONES_LIB_CLIENT_CLI_HELPER_FILES:$LIB_LOCATION/ruby/cli/ozones_helper
508
    OZONES_LIB_API_FILES:$LIB_LOCATION/ruby
509
    OZONES_LIB_API_ZONA_FILES:$LIB_LOCATION/ruby/zona
510
)
511

    
512
INSTALL_OZONES_ETC_FILES=(
513
    OZONES_ETC_FILES:$ETC_LOCATION
514
)
515

    
516
INSTALL_SELF_SERVICE_FILES=(
517
    SELF_SERVICE_TEMPLATE_FILES:$LIB_LOCATION/ruby/cloud/occi/ui/templates
518
    SELF_SERVICE_VIEWS_FILES:$LIB_LOCATION/ruby/cloud/occi/ui/views
519
    SELF_SERVICE_PUBLIC_JS_FILES:$LIB_LOCATION/ruby/cloud/occi/ui/public/js
520
    SELF_SERVICE_PUBLIC_JS_PLUGINS_FILES:$LIB_LOCATION/ruby/cloud/occi/ui/public/js/plugins
521
    SELF_SERVICE_PUBLIC_CSS_FILES:$LIB_LOCATION/ruby/cloud/occi/ui/public/css
522
    SELF_SERVICE_PUBLIC_CUSTOMIZE_FILES:$LIB_LOCATION/ruby/cloud/occi/ui/public/customize
523
    SELF_SERVICE_PUBLIC_VENDOR_DATATABLES:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/dataTables
524
    SELF_SERVICE_PUBLIC_VENDOR_JGROWL:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jGrowl
525
    SELF_SERVICE_PUBLIC_VENDOR_JQUERY:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQuery
526
    SELF_SERVICE_PUBLIC_VENDOR_JQUERYUI:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQueryUI
527
    SELF_SERVICE_PUBLIC_VENDOR_JQUERYUIIMAGES:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQueryUI/images
528
    SELF_SERVICE_PUBLIC_VENDOR_JQUERYLAYOUT:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/jQueryLayout
529
    SELF_SERVICE_PUBLIC_VENDOR_FLOT:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/flot
530
    SELF_SERVICE_PUBLIC_VENDOR_CRYPTOJS:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/crypto-js
531
    SELF_SERVICE_PUBLIC_VENDOR_FILEUPLOADER:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/fileuploader
532
    SELF_SERVICE_PUBLIC_VENDOR_XML2JSON:$LIB_LOCATION/ruby/cloud/occi/ui/public/vendor/xml2json
533
    SELF_SERVICE_PUBLIC_IMAGES_FILES:$LIB_LOCATION/ruby/cloud/occi/ui/public/images
534
    SELF_SERVICE_PUBLIC_LOCALE_EN_US:$LIB_LOCATION/ruby/cloud/occi/ui/public/locale/en_US
535
    SELF_SERVICE_PUBLIC_LOCALE_ES_ES:$LIB_LOCATION/ruby/cloud/occi/ui/public/locale/es_ES
536
    SELF_SERVICE_PUBLIC_LOCALE_FR_FR:$LIB_LOCATION/ruby/cloud/occi/ui/public/locale/fr_FR
537
    SELF_SERVICE_PUBLIC_LOCALE_FR_CA:$LIB_LOCATION/ruby/cloud/occi/ui/public/locale/fr_CA
538
)
539

    
540
INSTALL_ETC_FILES=(
541
    ETC_FILES:$ETC_LOCATION
542
    VMWARE_ETC_FILES:$ETC_LOCATION
543
    VMM_EC2_ETC_FILES:$ETC_LOCATION/vmm_ec2
544
    VMM_EXEC_ETC_FILES:$ETC_LOCATION/vmm_exec
545
    IM_EC2_ETC_FILES:$ETC_LOCATION/im_ec2
546
    HM_ETC_FILES:$ETC_LOCATION/hm
547
    AUTH_ETC_FILES:$ETC_LOCATION/auth
548
    ECO_ETC_FILES:$ETC_LOCATION
549
    ECO_ETC_TEMPLATE_FILES:$ETC_LOCATION/ec2query_templates
550
    OCCI_ETC_FILES:$ETC_LOCATION
551
    OCCI_ETC_TEMPLATE_FILES:$ETC_LOCATION/occi_templates
552
    CLI_CONF_FILES:$ETC_LOCATION/cli
553
)
554

    
555
#-------------------------------------------------------------------------------
556
# Binary files, to be installed under $BIN_LOCATION
557
#-------------------------------------------------------------------------------
558

    
559
BIN_FILES="src/nebula/oned \
560
           src/scheduler/src/sched/mm_sched \
561
           src/cli/onevm \
562
           src/cli/oneacct \
563
           src/cli/onehost \
564
           src/cli/onevnet \
565
           src/cli/oneuser \
566
           src/cli/oneimage \
567
           src/cli/onegroup \
568
           src/cli/onetemplate \
569
           src/cli/oneacl \
570
           src/cli/onedatastore \
571
           src/cli/onecluster \
572
           src/onedb/onedb \
573
           src/authm_mad/remotes/quota/onequota \
574
           src/mad/utils/tty_expect \
575
           share/scripts/one"
576

    
577
#-------------------------------------------------------------------------------
578
# C/C++ OpenNebula API Library & Development files
579
# Include files, to be installed under $INCLUDE_LOCATION
580
# Library files, to be installed under $LIB_LOCATION
581
#-------------------------------------------------------------------------------
582

    
583
INCLUDE_FILES=""
584
LIB_FILES=""
585

    
586
#-------------------------------------------------------------------------------
587
# Ruby library files, to be installed under $LIB_LOCATION/ruby
588
#-------------------------------------------------------------------------------
589

    
590
RUBY_LIB_FILES="src/mad/ruby/ActionManager.rb \
591
                src/mad/ruby/CommandManager.rb \
592
                src/mad/ruby/OpenNebulaDriver.rb \
593
                src/mad/ruby/VirtualMachineDriver.rb \
594
                src/mad/ruby/DriverExecHelper.rb \
595
                src/mad/ruby/ssh_stream.rb \
596
                src/vnm_mad/one_vnm.rb \
597
                src/mad/ruby/Ganglia.rb \
598
                src/oca/ruby/OpenNebula.rb \
599
                src/authm_mad/remotes/ssh/ssh_auth.rb \
600
                src/authm_mad/remotes/quota/quota.rb \
601
                src/authm_mad/remotes/server_x509/server_x509_auth.rb \
602
                src/authm_mad/remotes/server_cipher/server_cipher_auth.rb \
603
                src/authm_mad/remotes/ldap/ldap_auth.rb \
604
                src/authm_mad/remotes/x509/x509_auth.rb"
605

    
606
#-----------------------------------------------------------------------------
607
# MAD Script library files, to be installed under $LIB_LOCATION/<script lang>
608
# and remotes directory
609
#-----------------------------------------------------------------------------
610

    
611
MAD_SH_LIB_FILES="src/mad/sh/scripts_common.sh"
612
MAD_RUBY_LIB_FILES="src/mad/ruby/scripts_common.rb"
613

    
614
#-------------------------------------------------------------------------------
615
# Driver executable files, to be installed under $LIB_LOCATION/mads
616
#-------------------------------------------------------------------------------
617

    
618
MADS_LIB_FILES="src/mad/sh/madcommon.sh \
619
              src/vmm_mad/exec/one_vmm_exec.rb \
620
              src/vmm_mad/exec/one_vmm_exec \
621
              src/vmm_mad/exec/one_vmm_sh \
622
              src/vmm_mad/exec/one_vmm_ssh \
623
              src/vmm_mad/ec2/one_vmm_ec2.rb \
624
              src/vmm_mad/ec2/one_vmm_ec2 \
625
              src/vmm_mad/dummy/one_vmm_dummy.rb \
626
              src/vmm_mad/dummy/one_vmm_dummy \
627
              src/im_mad/im_exec/one_im_exec.rb \
628
              src/im_mad/im_exec/one_im_exec \
629
              src/im_mad/im_exec/one_im_ssh \
630
              src/im_mad/im_exec/one_im_sh \
631
              src/im_mad/ec2/one_im_ec2.rb \
632
              src/im_mad/ec2/one_im_ec2 \
633
              src/im_mad/dummy/one_im_dummy.rb \
634
              src/im_mad/dummy/one_im_dummy \
635
              src/tm_mad/one_tm \
636
              src/tm_mad/one_tm.rb \
637
              src/hm_mad/one_hm.rb \
638
              src/hm_mad/one_hm \
639
              src/authm_mad/one_auth_mad.rb \
640
              src/authm_mad/one_auth_mad \
641
              src/datastore_mad/one_datastore.rb \
642
              src/datastore_mad/one_datastore"
643

    
644
#-------------------------------------------------------------------------------
645
# VMM SH Driver KVM scripts, to be installed under $REMOTES_LOCATION/vmm/kvm
646
#-------------------------------------------------------------------------------
647

    
648
VMM_EXEC_KVM_SCRIPTS="src/vmm_mad/remotes/kvm/cancel \
649
                    src/vmm_mad/remotes/kvm/deploy \
650
                    src/vmm_mad/remotes/kvm/kvmrc \
651
                    src/vmm_mad/remotes/kvm/migrate \
652
                    src/vmm_mad/remotes/kvm/migrate_local \
653
                    src/vmm_mad/remotes/kvm/restore \
654
                    src/vmm_mad/remotes/kvm/reboot \
655
                    src/vmm_mad/remotes/kvm/save \
656
                    src/vmm_mad/remotes/kvm/poll \
657
                    src/vmm_mad/remotes/kvm/poll_ganglia \
658
                    src/vmm_mad/remotes/kvm/shutdown"
659

    
660
#-------------------------------------------------------------------------------
661
# VMM SH Driver Xen scripts, to be installed under $REMOTES_LOCATION/vmm/xen
662
#-------------------------------------------------------------------------------
663

    
664
VMM_EXEC_XEN_SCRIPTS="src/vmm_mad/remotes/xen/cancel \
665
                    src/vmm_mad/remotes/xen/deploy \
666
                    src/vmm_mad/remotes/xen/xenrc \
667
                    src/vmm_mad/remotes/xen/migrate \
668
                    src/vmm_mad/remotes/xen/restore \
669
                    src/vmm_mad/remotes/xen/reboot \
670
                    src/vmm_mad/remotes/xen/save \
671
                    src/vmm_mad/remotes/xen/poll \
672
                    src/vmm_mad/remotes/xen/poll_ganglia \
673
                    src/vmm_mad/remotes/xen/shutdown"
674

    
675
#-------------------------------------------------------------------------------
676
# VMM Driver VMWARE scripts, to be installed under $REMOTES_LOCATION/vmm/vmware
677
#-------------------------------------------------------------------------------
678

    
679
VMM_EXEC_VMWARE_SCRIPTS="src/vmm_mad/remotes/vmware/cancel \
680
                         src/vmm_mad/remotes/vmware/deploy \
681
                         src/vmm_mad/remotes/vmware/migrate \
682
                         src/vmm_mad/remotes/vmware/restore \
683
                         src/vmm_mad/remotes/vmware/reboot \
684
                         src/vmm_mad/remotes/vmware/save \
685
                         src/vmm_mad/remotes/vmware/poll \
686
                         src/vmm_mad/remotes/vmware/checkpoint \
687
                         src/vmm_mad/remotes/vmware/shutdown \
688
                         src/vmm_mad/remotes/vmware/vmware_driver.rb"
689

    
690
#-------------------------------------------------------------------------------
691
# Information Manager Probes, to be installed under $REMOTES_LOCATION/im
692
#-------------------------------------------------------------------------------
693

    
694
IM_PROBES_FILES="src/im_mad/remotes/run_probes"
695

    
696
IM_PROBES_KVM_FILES="src/im_mad/remotes/kvm.d/kvm.rb \
697
                     src/im_mad/remotes/kvm.d/architecture.sh \
698
                     src/im_mad/remotes/kvm.d/cpu.sh \
699
                     src/im_mad/remotes/kvm.d/name.sh"
700

    
701
IM_PROBES_XEN_FILES="src/im_mad/remotes/xen.d/xen.rb \
702
                     src/im_mad/remotes/xen.d/architecture.sh \
703
                     src/im_mad/remotes/xen.d/cpu.sh \
704
                     src/im_mad/remotes/xen.d/name.sh"
705

    
706
IM_PROBES_VMWARE_FILES="src/im_mad/remotes/vmware.d/vmware.rb"
707

    
708
IM_PROBES_GANGLIA_FILES="src/im_mad/remotes/ganglia.d/ganglia_probe"
709

    
710
#-------------------------------------------------------------------------------
711
# Auth Manager drivers to be installed under $REMOTES_LOCATION/auth
712
#-------------------------------------------------------------------------------
713

    
714
AUTH_SERVER_CIPHER_FILES="src/authm_mad/remotes/server_cipher/authenticate"
715

    
716
AUTH_SERVER_X509_FILES="src/authm_mad/remotes/server_x509/authenticate"
717

    
718
AUTH_X509_FILES="src/authm_mad/remotes/x509/authenticate"
719

    
720
AUTH_LDAP_FILES="src/authm_mad/remotes/ldap/authenticate"
721

    
722
AUTH_SSH_FILES="src/authm_mad/remotes/ssh/authenticate"
723

    
724
AUTH_DUMMY_FILES="src/authm_mad/remotes/dummy/authenticate"
725

    
726
AUTH_PLAIN_FILES="src/authm_mad/remotes/plain/authenticate"
727

    
728
AUTH_QUOTA_FILES="src/authm_mad/remotes/quota/authorize"
729

    
730
#-------------------------------------------------------------------------------
731
# Virtual Network Manager drivers to be installed under $REMOTES_LOCATION/vnm
732
#-------------------------------------------------------------------------------
733

    
734
NETWORK_FILES="src/vnm_mad/remotes/OpenNebulaNetwork.rb \
735
               src/vnm_mad/remotes/Firewall.rb \
736
               src/vnm_mad/remotes/OpenNebulaNic.rb"
737

    
738
NETWORK_8021Q_FILES="src/vnm_mad/remotes/802.1Q/clean \
739
                    src/vnm_mad/remotes/802.1Q/post \
740
                    src/vnm_mad/remotes/802.1Q/pre \
741
                    src/vnm_mad/remotes/802.1Q/HostManaged.rb"
742

    
743
NETWORK_DUMMY_FILES="src/vnm_mad/remotes/dummy/clean \
744
                    src/vnm_mad/remotes/dummy/post \
745
                    src/vnm_mad/remotes/dummy/pre"
746

    
747
NETWORK_EBTABLES_FILES="src/vnm_mad/remotes/ebtables/clean \
748
                    src/vnm_mad/remotes/ebtables/post \
749
                    src/vnm_mad/remotes/ebtables/pre \
750
                    src/vnm_mad/remotes/ebtables/Ebtables.rb"
751

    
752
NETWORK_FW_FILES="src/vnm_mad/remotes/fw/post \
753
                          src/vnm_mad/remotes/fw/pre \
754
                          src/vnm_mad/remotes/fw/clean"
755

    
756
NETWORK_OVSWITCH_FILES="src/vnm_mad/remotes/ovswitch/clean \
757
                    src/vnm_mad/remotes/ovswitch/post \
758
                    src/vnm_mad/remotes/ovswitch/pre \
759
                    src/vnm_mad/remotes/ovswitch/OpenvSwitch.rb"
760

    
761
NETWORK_VMWARE_FILES="src/vnm_mad/remotes/vmware/clean \
762
                    src/vnm_mad/remotes/vmware/post \
763
                    src/vnm_mad/remotes/vmware/pre \
764
                    src/vnm_mad/remotes/vmware/VMware.rb"
765

    
766
#-------------------------------------------------------------------------------
767
# Transfer Manager commands, to be installed under $LIB_LOCATION/tm_commands
768
#   - SHARED TM, $VAR_LOCATION/tm/shared
769
#   - QCOW2 TM, $VAR_LOCATION/tm/qcow2
770
#   - SSH TM, $VAR_LOCATION/tm/ssh
771
#   - DUMMY TM, $VAR_LOCATION/tm/dummy
772
#   - VMWARE TM, $VAR_LOCATION/tm/vmware
773
#   - ISCSI TM, $VAR_LOCATION/tm/iscsi
774
#   - LVM TM, $VAR_LOCATION/tm/lvm
775
#-------------------------------------------------------------------------------
776

    
777
TM_FILES="src/tm_mad/tm_common.sh"
778

    
779
TM_SHARED_FILES="src/tm_mad/shared/clone \
780
                 src/tm_mad/shared/delete \
781
                 src/tm_mad/shared/ln \
782
                 src/tm_mad/shared/mkswap \
783
                 src/tm_mad/shared/mkimage \
784
                 src/tm_mad/shared/mv \
785
                 src/tm_mad/shared/context \
786
                 src/tm_mad/shared/mvds"
787

    
788
TM_QCOW2_FILES="src/tm_mad/qcow2/clone \
789
                 src/tm_mad/qcow2/delete \
790
                 src/tm_mad/qcow2/ln \
791
                 src/tm_mad/qcow2/mkswap \
792
                 src/tm_mad/qcow2/mkimage \
793
                 src/tm_mad/qcow2/mv \
794
                 src/tm_mad/qcow2/context \
795
                 src/tm_mad/qcow2/mvds"
796

    
797
TM_SSH_FILES="src/tm_mad/ssh/clone \
798
              src/tm_mad/ssh/delete \
799
              src/tm_mad/ssh/ln \
800
              src/tm_mad/ssh/mkswap \
801
              src/tm_mad/ssh/mkimage \
802
              src/tm_mad/ssh/mv \
803
              src/tm_mad/ssh/context \
804
              src/tm_mad/ssh/mvds"
805

    
806
TM_DUMMY_FILES="src/tm_mad/dummy/clone \
807
              src/tm_mad/dummy/delete \
808
              src/tm_mad/dummy/ln \
809
              src/tm_mad/dummy/mkswap \
810
              src/tm_mad/dummy/mkimage \
811
              src/tm_mad/dummy/mv \
812
              src/tm_mad/dummy/context \
813
              src/tm_mad/dummy/mvds"
814

    
815
TM_VMWARE_FILES="src/tm_mad/vmware/clone \
816
                 src/tm_mad/vmware/delete
817
                 src/tm_mad/vmware/ln \
818
                 src/tm_mad/vmware/mkswap \
819
                 src/tm_mad/vmware/mkimage \
820
                 src/tm_mad/vmware/mv \
821
                 src/tm_mad/vmware/context \
822
                 src/tm_mad/vmware/mvds"
823

    
824
TM_ISCSI_FILES="src/tm_mad/iscsi/clone \
825
                 src/tm_mad/iscsi/ln \
826
                 src/tm_mad/iscsi/mv \
827
                 src/tm_mad/iscsi/mvds \
828
                 src/tm_mad/iscsi/delete"
829

    
830
TM_LVM_FILES="src/tm_mad/lvm/clone \
831
                 src/tm_mad/lvm/ln \
832
                 src/tm_mad/lvm/mv \
833
                 src/tm_mad/lvm/mvds \
834
                 src/tm_mad/lvm/delete"
835

    
836
#-------------------------------------------------------------------------------
837
# Datastore drivers, to be installed under $REMOTES_LOCATION/datastore
838
#   - Dummy Image Repository, $REMOTES_LOCATION/datastore/dummy
839
#   - FS based Image Repository, $REMOTES_LOCATION/datastore/fs
840
#   - VMware based Image Repository, $REMOTES_LOCATION/datastore/vmware
841
#   - iSCSI based Image Repository, $REMOTES_LOCATION/datastore/iscsi
842
#   - LVM based Image Repository, $REMOTES_LOCATION/datastore/lvm
843
#-------------------------------------------------------------------------------
844

    
845
DATASTORE_DRIVER_COMMON_SCRIPTS="src/datastore_mad/remotes/xpath.rb \
846
                             src/datastore_mad/remotes/libfs.sh"
847

    
848
DATASTORE_DRIVER_DUMMY_SCRIPTS="src/datastore_mad/remotes/dummy/cp \
849
                         src/datastore_mad/remotes/dummy/mkfs \
850
                         src/datastore_mad/remotes/dummy/rm"
851

    
852
DATASTORE_DRIVER_FS_SCRIPTS="src/datastore_mad/remotes/fs/cp \
853
                         src/datastore_mad/remotes/fs/mkfs \
854
                         src/datastore_mad/remotes/fs/rm"
855

    
856
DATASTORE_DRIVER_VMWARE_SCRIPTS="src/datastore_mad/remotes/vmware/cp \
857
                         src/datastore_mad/remotes/vmware/mkfs \
858
                         src/datastore_mad/remotes/vmware/rm"
859

    
860
DATASTORE_DRIVER_ISCSI_SCRIPTS="src/datastore_mad/remotes/iscsi/cp \
861
                         src/datastore_mad/remotes/iscsi/mkfs \
862
                         src/datastore_mad/remotes/iscsi/rm \
863
                         src/datastore_mad/remotes/iscsi/iscsi.conf"
864

    
865
DATASTORE_DRIVER_LVM_SCRIPTS="src/datastore_mad/remotes/lvm/cp \
866
                         src/datastore_mad/remotes/lvm/mkfs \
867
                         src/datastore_mad/remotes/lvm/rm \
868
                         src/datastore_mad/remotes/lvm/lvm.conf"
869

    
870
#-------------------------------------------------------------------------------
871
# Migration scripts for onedb command, to be installed under $LIB_LOCATION
872
#-------------------------------------------------------------------------------
873
ONEDB_MIGRATOR_FILES="src/onedb/2.0_to_2.9.80.rb \
874
                      src/onedb/2.9.80_to_2.9.85.rb \
875
                      src/onedb/2.9.85_to_2.9.90.rb \
876
                      src/onedb/2.9.90_to_3.0.0.rb \
877
                      src/onedb/3.0.0_to_3.1.0.rb \
878
                      src/onedb/3.1.0_to_3.1.80.rb \
879
                      src/onedb/3.1.80_to_3.2.0.rb \
880
                      src/onedb/3.2.0_to_3.2.1.rb \
881
                      src/onedb/3.2.1_to_3.3.0.rb \
882
                      src/onedb/3.3.0_to_3.3.80.rb \
883
                      src/onedb/3.3.80_to_3.4.0.rb \
884
                      src/onedb/3.4.0_to_3.4.1.rb \
885
                      src/onedb/3.4.1_to_3.5.80.rb \
886
                      src/onedb/onedb.rb \
887
                      src/onedb/onedb_backend.rb"
888

    
889
#-------------------------------------------------------------------------------
890
# Configuration files for OpenNebula, to be installed under $ETC_LOCATION
891
#-------------------------------------------------------------------------------
892

    
893
ETC_FILES="share/etc/oned.conf \
894
           share/etc/defaultrc \
895
           src/scheduler/etc/sched.conf \
896
           src/cli/etc/group.default"
897

    
898
VMWARE_ETC_FILES="src/vmm_mad/remotes/vmware/vmwarerc"
899

    
900
#-------------------------------------------------------------------------------
901
# Virtualization drivers config. files, to be installed under $ETC_LOCATION
902
#   - ec2, $ETC_LOCATION/vmm_ec2
903
#   - ssh, $ETC_LOCATION/vmm_exec
904
#-------------------------------------------------------------------------------
905

    
906
VMM_EC2_ETC_FILES="src/vmm_mad/ec2/vmm_ec2rc \
907
                   src/vmm_mad/ec2/vmm_ec2.conf"
908

    
909
VMM_EXEC_ETC_FILES="src/vmm_mad/exec/vmm_execrc \
910
                  src/vmm_mad/exec/vmm_exec_kvm.conf \
911
                  src/vmm_mad/exec/vmm_exec_xen.conf \
912
                  src/vmm_mad/exec/vmm_exec_vmware.conf"
913

    
914
#-------------------------------------------------------------------------------
915
# Information drivers config. files, to be installed under $ETC_LOCATION
916
#   - ec2, $ETC_LOCATION/im_ec2
917
#-------------------------------------------------------------------------------
918

    
919
IM_EC2_ETC_FILES="src/im_mad/ec2/im_ec2rc \
920
                  src/im_mad/ec2/im_ec2.conf"
921

    
922
#-------------------------------------------------------------------------------
923
# Hook Manager driver config. files, to be installed under $ETC_LOCATION/hm
924
#-------------------------------------------------------------------------------
925

    
926
HM_ETC_FILES="src/hm_mad/hmrc"
927

    
928
#-------------------------------------------------------------------------------
929
# Auth Manager drivers config. files, to be installed under $ETC_LOCATION/auth
930
#-------------------------------------------------------------------------------
931

    
932
AUTH_ETC_FILES="src/authm_mad/remotes/server_x509/server_x509_auth.conf \
933
                src/authm_mad/remotes/quota/quota.conf \
934
                src/authm_mad/remotes/ldap/ldap_auth.conf \
935
                src/authm_mad/remotes/x509/x509_auth.conf"
936

    
937
#-------------------------------------------------------------------------------
938
# Sample files, to be installed under $SHARE_LOCATION/examples
939
#-------------------------------------------------------------------------------
940

    
941
EXAMPLE_SHARE_FILES="share/examples/vm.template \
942
                     share/examples/private.net \
943
                     share/examples/public.net"
944

    
945
#-------------------------------------------------------------------------------
946
# HOOK scripts, to be installed under $VAR_LOCATION/remotes/hooks
947
#-------------------------------------------------------------------------------
948

    
949
HOOK_FT_FILES="share/hooks/host_error.rb"
950

    
951
#-------------------------------------------------------------------------------
952
# Installation scripts, to be installed under $SHARE_LOCATION
953
#-------------------------------------------------------------------------------
954

    
955
INSTALL_NOVNC_SHARE_FILE="share/install_novnc.sh"
956
INSTALL_GEMS_SHARE_FILE="share/install_gems/install_gems"
957

    
958
#-------------------------------------------------------------------------------
959
# OCA Files
960
#-------------------------------------------------------------------------------
961
OCA_LIB_FILES="src/oca/ruby/OpenNebula.rb"
962

    
963
RUBY_OPENNEBULA_LIB_FILES="src/oca/ruby/OpenNebula/Host.rb \
964
                           src/oca/ruby/OpenNebula/HostPool.rb \
965
                           src/oca/ruby/OpenNebula/Pool.rb \
966
                           src/oca/ruby/OpenNebula/User.rb \
967
                           src/oca/ruby/OpenNebula/UserPool.rb \
968
                           src/oca/ruby/OpenNebula/VirtualMachine.rb \
969
                           src/oca/ruby/OpenNebula/VirtualMachinePool.rb \
970
                           src/oca/ruby/OpenNebula/VirtualNetwork.rb \
971
                           src/oca/ruby/OpenNebula/VirtualNetworkPool.rb \
972
                           src/oca/ruby/OpenNebula/Image.rb \
973
                           src/oca/ruby/OpenNebula/ImagePool.rb \
974
                           src/oca/ruby/OpenNebula/Template.rb \
975
                           src/oca/ruby/OpenNebula/TemplatePool.rb \
976
                           src/oca/ruby/OpenNebula/Group.rb \
977
                           src/oca/ruby/OpenNebula/GroupPool.rb \
978
                           src/oca/ruby/OpenNebula/Acl.rb \
979
                           src/oca/ruby/OpenNebula/AclPool.rb \
980
                           src/oca/ruby/OpenNebula/Datastore.rb \
981
                           src/oca/ruby/OpenNebula/DatastorePool.rb \
982
                           src/oca/ruby/OpenNebula/Cluster.rb \
983
                           src/oca/ruby/OpenNebula/ClusterPool.rb \
984
                           src/oca/ruby/OpenNebula/XMLUtils.rb"
985

    
986
#-------------------------------------------------------------------------------
987
# Common Cloud Files
988
#-------------------------------------------------------------------------------
989

    
990
COMMON_CLOUD_LIB_FILES="src/cloud/common/CloudServer.rb \
991
                        src/cloud/common/CloudClient.rb \
992
                        src/cloud/common/CloudAuth.rb"
993

    
994
COMMON_CLOUD_CLIENT_LIB_FILES="src/cloud/common/CloudClient.rb"
995

    
996
CLOUD_AUTH_LIB_FILES="src/cloud/common/CloudAuth/OCCICloudAuth.rb \
997
                      src/cloud/common/CloudAuth/SunstoneCloudAuth.rb \
998
                      src/cloud/common/CloudAuth/EC2CloudAuth.rb \
999
                      src/cloud/common/CloudAuth/X509CloudAuth.rb \
1000
                      src/cloud/common/CloudAuth/OpenNebulaCloudAuth.rb"
1001

    
1002
#-------------------------------------------------------------------------------
1003
# EC2 Query for OpenNebula
1004
#-------------------------------------------------------------------------------
1005

    
1006
ECO_LIB_FILES="src/cloud/ec2/lib/EC2QueryClient.rb \
1007
               src/cloud/ec2/lib/EC2QueryServer.rb \
1008
               src/cloud/ec2/lib/ImageEC2.rb \
1009
               src/cloud/ec2/lib/elastic_ip.rb \
1010
               src/cloud/ec2/lib/econe-server.rb"
1011

    
1012
ECO_LIB_CLIENT_FILES="src/cloud/ec2/lib/EC2QueryClient.rb"
1013

    
1014
ECO_LIB_VIEW_FILES="src/cloud/ec2/lib/views/describe_images.erb \
1015
                    src/cloud/ec2/lib/views/describe_instances.erb \
1016
                    src/cloud/ec2/lib/views/register_image.erb \
1017
                    src/cloud/ec2/lib/views/run_instances.erb \
1018
                    src/cloud/ec2/lib/views/allocate_address.erb \
1019
                    src/cloud/ec2/lib/views/associate_address.erb \
1020
                    src/cloud/ec2/lib/views/disassociate_address.erb \
1021
                    src/cloud/ec2/lib/views/describe_addresses.erb \
1022
                    src/cloud/ec2/lib/views/release_address.erb \
1023
                    src/cloud/ec2/lib/views/terminate_instances.erb"
1024

    
1025
ECO_BIN_FILES="src/cloud/ec2/bin/econe-server \
1026
               src/cloud/ec2/bin/econe-describe-images \
1027
               src/cloud/ec2/bin/econe-describe-instances \
1028
               src/cloud/ec2/bin/econe-register \
1029
               src/cloud/ec2/bin/econe-run-instances \
1030
               src/cloud/ec2/bin/econe-terminate-instances \
1031
               src/cloud/ec2/bin/econe-describe-addresses \
1032
               src/cloud/ec2/bin/econe-allocate-address \
1033
               src/cloud/ec2/bin/econe-release-address \
1034
               src/cloud/ec2/bin/econe-associate-address \
1035
               src/cloud/ec2/bin/econe-disassociate-address \
1036
               src/cloud/ec2/bin/econe-upload"
1037

    
1038
ECO_BIN_CLIENT_FILES="src/cloud/ec2/bin/econe-describe-images \
1039
               src/cloud/ec2/bin/econe-describe-instances \
1040
               src/cloud/ec2/bin/econe-register \
1041
               src/cloud/ec2/bin/econe-run-instances \
1042
               src/cloud/ec2/bin/econe-terminate-instances \
1043
               src/cloud/ec2/bin/econe-describe-addresses \
1044
               src/cloud/ec2/bin/econe-allocate-address \
1045
               src/cloud/ec2/bin/econe-release-address \
1046
               src/cloud/ec2/bin/econe-associate-address \
1047
               src/cloud/ec2/bin/econe-disassociate-address \
1048
               src/cloud/ec2/bin/econe-upload"
1049

    
1050
ECO_ETC_FILES="src/cloud/ec2/etc/econe.conf"
1051

    
1052
ECO_ETC_TEMPLATE_FILES="src/cloud/ec2/etc/templates/m1.small.erb"
1053

    
1054
#-----------------------------------------------------------------------------
1055
# OCCI files
1056
#-----------------------------------------------------------------------------
1057

    
1058
OCCI_LIB_FILES="src/cloud/occi/lib/OCCIServer.rb \
1059
                src/cloud/occi/lib/occi-server.rb \
1060
                src/cloud/occi/lib/OCCIClient.rb \
1061
                src/cloud/occi/lib/VirtualMachineOCCI.rb \
1062
                src/cloud/occi/lib/VirtualMachinePoolOCCI.rb \
1063
                src/cloud/occi/lib/VirtualNetworkOCCI.rb \
1064
                src/cloud/occi/lib/VirtualNetworkPoolOCCI.rb \
1065
                src/cloud/occi/lib/UserOCCI.rb \
1066
                src/cloud/occi/lib/UserPoolOCCI.rb \
1067
                src/cloud/occi/lib/ImageOCCI.rb \
1068
                src/cloud/occi/lib/ImagePoolOCCI.rb \
1069
                src/sunstone/OpenNebulaVNC.rb"
1070

    
1071
OCCI_LIB_CLIENT_FILES="src/cloud/occi/lib/OCCIClient.rb"
1072

    
1073
OCCI_BIN_FILES="src/cloud/occi/bin/occi-server \
1074
               src/cloud/occi/bin/occi-compute \
1075
               src/cloud/occi/bin/occi-network \
1076
               src/cloud/occi/bin/occi-instance-type \
1077
               src/cloud/occi/bin/occi-storage"
1078

    
1079
OCCI_BIN_CLIENT_FILES="src/cloud/occi/bin/occi-compute \
1080
               src/cloud/occi/bin/occi-network \
1081
               src/cloud/occi/bin/occi-instance-type \
1082
               src/cloud/occi/bin/occi-storage"
1083

    
1084
OCCI_ETC_FILES="src/cloud/occi/etc/occi-server.conf"
1085

    
1086
OCCI_ETC_TEMPLATE_FILES="src/cloud/occi/etc/templates/common.erb \
1087
                    src/cloud/occi/etc/templates/custom.erb \
1088
                    src/cloud/occi/etc/templates/small.erb \
1089
                    src/cloud/occi/etc/templates/medium.erb \
1090
                    src/cloud/occi/etc/templates/network.erb \
1091
                    src/cloud/occi/etc/templates/large.erb"
1092

    
1093
#-----------------------------------------------------------------------------
1094
# CLI files
1095
#-----------------------------------------------------------------------------
1096

    
1097
CLI_LIB_FILES="src/cli/cli_helper.rb \
1098
               src/cli/command_parser.rb \
1099
               src/cli/one_helper.rb"
1100

    
1101
ONE_CLI_LIB_FILES="src/cli/one_helper/onegroup_helper.rb \
1102
                   src/cli/one_helper/onehost_helper.rb \
1103
                   src/cli/one_helper/oneimage_helper.rb \
1104
                   src/cli/one_helper/onetemplate_helper.rb \
1105
                   src/cli/one_helper/oneuser_helper.rb \
1106
                   src/cli/one_helper/onevm_helper.rb \
1107
                   src/cli/one_helper/onevnet_helper.rb \
1108
                   src/cli/one_helper/oneacl_helper.rb \
1109
                   src/cli/one_helper/onedatastore_helper.rb \
1110
                   src/cli/one_helper/onecluster_helper.rb"
1111

    
1112
CLI_BIN_FILES="src/cli/onevm \
1113
               src/cli/onehost \
1114
               src/cli/onevnet \
1115
               src/cli/oneuser \
1116
               src/cli/oneimage \
1117
               src/cli/onetemplate \
1118
               src/cli/onegroup \
1119
               src/cli/oneacl \
1120
               src/cli/onedatastore \
1121
               src/cli/onecluster"
1122

    
1123
CLI_CONF_FILES="src/cli/etc/onegroup.yaml \
1124
                src/cli/etc/onehost.yaml \
1125
                src/cli/etc/oneimage.yaml \
1126
                src/cli/etc/onetemplate.yaml \
1127
                src/cli/etc/oneuser.yaml \
1128
                src/cli/etc/onevm.yaml \
1129
                src/cli/etc/onevnet.yaml \
1130
                src/cli/etc/oneacl.yaml \
1131
                src/cli/etc/onedatastore.yaml \
1132
                src/cli/etc/onecluster.yaml"
1133

    
1134
ETC_CLIENT_FILES="src/cli/etc/group.default"
1135

    
1136
#-----------------------------------------------------------------------------
1137
# Sunstone files
1138
#-----------------------------------------------------------------------------
1139

    
1140
SUNSTONE_FILES="src/sunstone/sunstone-server.rb \
1141
                src/sunstone/OpenNebulaVNC.rb"
1142

    
1143
SUNSTONE_BIN_FILES="src/sunstone/bin/sunstone-server"
1144

    
1145
SUNSTONE_ETC_FILES="src/sunstone/etc/sunstone-server.conf \
1146
                    src/sunstone/etc/sunstone-plugins.yaml"
1147

    
1148
SUNSTONE_MODELS_FILES="src/sunstone/models/OpenNebulaJSON.rb \
1149
                       src/sunstone/models/SunstoneServer.rb \
1150
                       src/sunstone/models/SunstonePlugins.rb"
1151

    
1152
SUNSTONE_MODELS_JSON_FILES="src/sunstone/models/OpenNebulaJSON/HostJSON.rb \
1153
                    src/sunstone/models/OpenNebulaJSON/ImageJSON.rb \
1154
                    src/sunstone/models/OpenNebulaJSON/GroupJSON.rb \
1155
                    src/sunstone/models/OpenNebulaJSON/JSONUtils.rb \
1156
                    src/sunstone/models/OpenNebulaJSON/PoolJSON.rb \
1157
                    src/sunstone/models/OpenNebulaJSON/UserJSON.rb \
1158
                    src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb \
1159
                    src/sunstone/models/OpenNebulaJSON/TemplateJSON.rb \
1160
                    src/sunstone/models/OpenNebulaJSON/AclJSON.rb \
1161
                    src/sunstone/models/OpenNebulaJSON/ClusterJSON.rb \
1162
                    src/sunstone/models/OpenNebulaJSON/DatastoreJSON.rb \
1163
                    src/sunstone/models/OpenNebulaJSON/VirtualNetworkJSON.rb"
1164

    
1165
SUNSTONE_TEMPLATE_FILES="src/sunstone/templates/login.html \
1166
                         src/sunstone/templates/login_x509.html"
1167

    
1168
SUNSTONE_VIEWS_FILES="src/sunstone/views/index.erb"
1169

    
1170
SUNSTONE_PUBLIC_JS_FILES="src/sunstone/public/js/layout.js \
1171
                        src/sunstone/public/js/login.js \
1172
                        src/sunstone/public/js/sunstone.js \
1173
                        src/sunstone/public/js/sunstone-util.js \
1174
                        src/sunstone/public/js/opennebula.js \
1175
                        src/sunstone/public/js/locale.js"
1176

    
1177
SUNSTONE_PUBLIC_JS_PLUGINS_FILES="\
1178
                        src/sunstone/public/js/plugins/dashboard-tab.js \
1179
                        src/sunstone/public/js/plugins/dashboard-users-tab.js \
1180
                        src/sunstone/public/js/plugins/hosts-tab.js \
1181
                        src/sunstone/public/js/plugins/clusters-tab.js \
1182
                        src/sunstone/public/js/plugins/datastores-tab.js \
1183
                        src/sunstone/public/js/plugins/system-tab.js \
1184
                        src/sunstone/public/js/plugins/vresources-tab.js \
1185
                        src/sunstone/public/js/plugins/infra-tab.js \
1186
                        src/sunstone/public/js/plugins/groups-tab.js \
1187
                        src/sunstone/public/js/plugins/images-tab.js \
1188
                        src/sunstone/public/js/plugins/templates-tab.js \
1189
                        src/sunstone/public/js/plugins/users-tab.js \
1190
                        src/sunstone/public/js/plugins/vms-tab.js \
1191
                        src/sunstone/public/js/plugins/acls-tab.js \
1192
                        src/sunstone/public/js/plugins/vnets-tab.js \
1193
                        src/sunstone/public/js/plugins/config-tab.js"
1194

    
1195
SUNSTONE_PUBLIC_CSS_FILES="src/sunstone/public/css/application.css \
1196
                           src/sunstone/public/css/layout.css \
1197
                           src/sunstone/public/css/login.css"
1198

    
1199
SUNSTONE_PUBLIC_VENDOR_DATATABLES="\
1200
                src/sunstone/public/vendor/dataTables/jquery.dataTables.min.js \
1201
                src/sunstone/public/vendor/dataTables/ColVis.min.js \
1202
                src/sunstone/public/vendor/dataTables/ColReorderWithResize.js \
1203
                src/sunstone/public/vendor/dataTables/demo_table_jui.css \
1204
                src/sunstone/public/vendor/dataTables/ColVis.css \
1205
                src/sunstone/public/vendor/dataTables/BSD-LICENSE.txt \
1206
                src/sunstone/public/vendor/dataTables/NOTICE"
1207

    
1208
SUNSTONE_PUBLIC_VENDOR_JGROWL="\
1209
                src/sunstone/public/vendor/jGrowl/jquery.jgrowl_minimized.js \
1210
                src/sunstone/public/vendor/jGrowl/jquery.jgrowl.css \
1211
                src/sunstone/public/vendor/jGrowl/NOTICE"
1212

    
1213
SUNSTONE_PUBLIC_VENDOR_JQUERY="\
1214
                        src/sunstone/public/vendor/jQuery/jquery-1.7.2.min.js \
1215
                        src/sunstone/public/vendor/jQuery/MIT-LICENSE.txt \
1216
                        src/sunstone/public/vendor/jQuery/NOTICE"
1217

    
1218
SUNSTONE_PUBLIC_VENDOR_JQUERYUI="\
1219
src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css \
1220
src/sunstone/public/vendor/jQueryUI/MIT-LICENSE.txt \
1221
src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js \
1222
src/sunstone/public/vendor/jQueryUI/NOTICE \
1223
"
1224

    
1225
SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES="\
1226
src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png  \
1227
src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png  \
1228
src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png  \
1229
src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png  \
1230
src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png  \
1231
src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png  \
1232
src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png  \
1233
src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png  \
1234
src/sunstone/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png  \
1235
src/sunstone/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png  \
1236
src/sunstone/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png  \
1237
src/sunstone/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png  \
1238
src/sunstone/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png  \
1239
"
1240

    
1241
SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT="\
1242
            src/sunstone/public/vendor/jQueryLayout/layout-default-latest.css \
1243
            src/sunstone/public/vendor/jQueryLayout/jquery.layout-latest.min.js \
1244
            src/sunstone/public/vendor/jQueryLayout/NOTICE"
1245

    
1246
SUNSTONE_PUBLIC_VENDOR_FLOT="\
1247
src/sunstone/public/vendor/flot/jquery.flot.min.js \
1248
src/sunstone/public/vendor/flot/jquery.flot.navigate.min.js \
1249
src/sunstone/public/vendor/flot/LICENSE.txt \
1250
src/sunstone/public/vendor/flot/NOTICE \
1251
src/sunstone/public/vendor/flot/README.txt"
1252

    
1253
SUNSTONE_PUBLIC_VENDOR_CRYPTOJS="\
1254
src/sunstone/public/vendor/crypto-js/NOTICE \
1255
src/sunstone/public/vendor/crypto-js/2.3.0-crypto-sha1.js \
1256
src/sunstone/public/vendor/crypto-js/NEW-BSD-LICENSE.txt"
1257

    
1258
SUNSTONE_PUBLIC_VENDOR_FILEUPLOADER="\
1259
src/sunstone/public/vendor/fileuploader/NOTICE \
1260
src/sunstone/public/vendor/fileuploader/fileuploader.js"
1261

    
1262
SUNSTONE_PUBLIC_VENDOR_XML2JSON="\
1263
src/sunstone/public/vendor/xml2json/NOTICE \
1264
src/sunstone/public/vendor/xml2json/jquery.xml2json.pack.js"
1265

    
1266
SUNSTONE_PUBLIC_IMAGES_FILES="src/sunstone/public/images/ajax-loader.gif \
1267
                        src/sunstone/public/images/login_over.png \
1268
                        src/sunstone/public/images/login.png \
1269
                        src/sunstone/public/images/opennebula-sunstone-big.png \
1270
                        src/sunstone/public/images/opennebula-sunstone-small.png \
1271
                        src/sunstone/public/images/panel.png \
1272
                        src/sunstone/public/images/panel_short.png \
1273
                        src/sunstone/public/images/pbar.gif \
1274
                        src/sunstone/public/images/Refresh-icon.png \
1275
                        src/sunstone/public/images/red_bullet.png \
1276
                        src/sunstone/public/images/yellow_bullet.png \
1277
                        src/sunstone/public/images/green_bullet.png \
1278
                        src/sunstone/public/images/vnc_off.png \
1279
                        src/sunstone/public/images/vnc_on.png \
1280
                        src/sunstone/public/images/network_icon.png \
1281
                        src/sunstone/public/images/system_icon.png \
1282
                        src/sunstone/public/images/server_icon.png \
1283
"
1284

    
1285
SUNSTONE_PUBLIC_LOCALE_EN_US="\
1286
src/sunstone/public/locale/en_US/en_US.js \
1287
src/sunstone/public/locale/en_US/en_datatable.txt \
1288
"
1289

    
1290
SUNSTONE_PUBLIC_LOCALE_RU="
1291
src/sunstone/public/locale/ru/ru.js \
1292
src/sunstone/public/locale/ru/ru_datatable.txt"
1293

    
1294
SUNSTONE_PUBLIC_LOCALE_IT_IT="
1295
src/sunstone/public/locale/it_IT/it_IT.js \
1296
src/sunstone/public/locale/it_IT/it_datatable.txt"
1297

    
1298
SUNSTONE_PUBLIC_LOCALE_PT_PT="
1299
src/sunstone/public/locale/pt_PT/pt_PT.js \
1300
src/sunstone/public/locale/pt_PT/pt_datatable.txt"
1301

    
1302
SUNSTONE_PUBLIC_LOCALE_FR_FR="
1303
src/sunstone/public/locale/fr_FR/fr_FR.js \
1304
src/sunstone/public/locale/fr_FR/fr_datatable.txt"
1305

    
1306

    
1307

    
1308
#-----------------------------------------------------------------------------
1309
# Ozones files
1310
#-----------------------------------------------------------------------------
1311

    
1312
OZONES_FILES="src/ozones/Server/ozones-server.rb"
1313

    
1314
OZONES_BIN_FILES="src/ozones/Server/bin/ozones-server"
1315

    
1316
OZONES_ETC_FILES="src/ozones/Server/etc/ozones-server.conf"
1317

    
1318
OZONES_MODELS_FILES="src/ozones/Server/models/OzonesServer.rb \
1319
                     src/ozones/Server/models/Auth.rb \
1320
                     src/sunstone/models/OpenNebulaJSON/JSONUtils.rb"
1321

    
1322
OZONES_TEMPLATE_FILES="src/ozones/Server/templates/index.html \
1323
                       src/ozones/Server/templates/login.html"
1324

    
1325
OZONES_LIB_FILES="src/ozones/Server/lib/OZones.rb"
1326

    
1327
OZONES_LIB_ZONE_FILES="src/ozones/Server/lib/OZones/Zones.rb \
1328
                src/ozones/Server/lib/OZones/VDC.rb \
1329
                src/ozones/Server/lib/OZones/ProxyRules.rb \
1330
                src/ozones/Server/lib/OZones/ApacheWritter.rb \
1331
                src/ozones/Server/lib/OZones/AggregatedHosts.rb \
1332
                src/ozones/Server/lib/OZones/AggregatedUsers.rb \
1333
                src/ozones/Server/lib/OZones/AggregatedVirtualMachines.rb \
1334
                src/ozones/Server/lib/OZones/AggregatedVirtualNetworks.rb \
1335
                src/ozones/Server/lib/OZones/AggregatedPool.rb \
1336
                src/ozones/Server/lib/OZones/AggregatedImages.rb \
1337
                src/ozones/Server/lib/OZones/AggregatedDatastores.rb \
1338
                src/ozones/Server/lib/OZones/AggregatedClusters.rb \
1339
                src/ozones/Server/lib/OZones/AggregatedTemplates.rb"
1340

    
1341
OZONES_LIB_API_FILES="src/ozones/Client/lib/zona.rb"
1342

    
1343
OZONES_LIB_API_ZONA_FILES="src/ozones/Client/lib/zona/ZoneElement.rb \
1344
                src/ozones/Client/lib/zona/OZonesPool.rb \
1345
                src/ozones/Client/lib/zona/OZonesJSON.rb \
1346
                src/ozones/Client/lib/zona/VDCPool.rb \
1347
                src/ozones/Client/lib/zona/VDCElement.rb \
1348
                src/ozones/Client/lib/zona/OZonesElement.rb \
1349
                src/ozones/Client/lib/zona/ZonePool.rb"
1350

    
1351
OZONES_PUBLIC_VENDOR_JQUERY=$SUNSTONE_PUBLIC_VENDOR_JQUERY
1352

    
1353
OZONES_PUBLIC_VENDOR_DATATABLES=$SUNSTONE_PUBLIC_VENDOR_DATATABLES
1354

    
1355
OZONES_PUBLIC_VENDOR_JGROWL=$SUNSTONE_PUBLIC_VENDOR_JGROWL
1356

    
1357
OZONES_PUBLIC_VENDOR_JQUERYUI=$SUNSTONE_PUBLIC_VENDOR_JQUERYUI
1358

    
1359
OZONES_PUBLIC_VENDOR_JQUERYUIIMAGES=$SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES
1360

    
1361
OZONES_PUBLIC_VENDOR_JQUERYLAYOUT=$SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT
1362

    
1363
OZONES_PUBLIC_JS_FILES="src/ozones/Server/public/js/ozones.js \
1364
                        src/ozones/Server/public/js/login.js \
1365
                        src/ozones/Server/public/js/ozones-util.js \
1366
                        src/sunstone/public/js/layout.js \
1367
                        src/sunstone/public/js/sunstone.js \
1368
                        src/sunstone/public/js/sunstone-util.js \
1369
                        src/sunstone/public/js/locale.js"
1370

    
1371
OZONES_PUBLIC_CSS_FILES="src/ozones/Server/public/css/application.css \
1372
                         src/ozones/Server/public/css/layout.css \
1373
                         src/ozones/Server/public/css/login.css"
1374

    
1375
OZONES_PUBLIC_IMAGES_FILES="src/ozones/Server/public/images/panel.png \
1376
                        src/ozones/Server/public/images/login.png \
1377
                        src/ozones/Server/public/images/login_over.png \
1378
                        src/ozones/Server/public/images/Refresh-icon.png \
1379
                        src/ozones/Server/public/images/ajax-loader.gif \
1380
                        src/ozones/Server/public/images/opennebula-zones-small.png \
1381
                        src/ozones/Server/public/images/opennebula-zones-big.png \
1382
                        src/ozones/Server/public/images/pbar.gif"
1383

    
1384
OZONES_PUBLIC_JS_PLUGINS_FILES="src/ozones/Server/public/js/plugins/zones-tab.js \
1385
                               src/ozones/Server/public/js/plugins/vdcs-tab.js \
1386
                               src/ozones/Server/public/js/plugins/aggregated-tab.js \
1387
                               src/ozones/Server/public/js/plugins/dashboard-tab.js"
1388

    
1389
OZONES_LIB_CLIENT_CLI_FILES="src/ozones/Client/lib/cli/ozones_helper.rb"
1390

    
1391
OZONES_LIB_CLIENT_CLI_HELPER_FILES="\
1392
                src/ozones/Client/lib/cli/ozones_helper/vdc_helper.rb \
1393
                src/ozones/Client/lib/cli/ozones_helper/zones_helper.rb"
1394

    
1395
OZONES_BIN_CLIENT_FILES="src/ozones/Client/bin/onevdc \
1396
                         src/ozones/Client/bin/onezone"
1397

    
1398
OZONES_RUBY_LIB_FILES="src/oca/ruby/OpenNebula.rb"
1399

    
1400
#-----------------------------------------------------------------------------
1401
# Self-Service files
1402
#-----------------------------------------------------------------------------
1403

    
1404
SELF_SERVICE_TEMPLATE_FILES="src/cloud/occi/lib/ui/templates/login.html"
1405
SELF_SERVICE_VIEWS_FILES="src/cloud/occi/lib/ui/views/index.erb"
1406
SELF_SERVICE_PUBLIC_JS_FILES="src/cloud/occi/lib/ui/public/js/layout.js \
1407
                    src/cloud/occi/lib/ui/public/js/occi.js \
1408
                    src/cloud/occi/lib/ui/public/js/locale.js \
1409
                    src/cloud/occi/lib/ui/public/js/login.js \
1410
                    src/sunstone/public/js/sunstone.js \
1411
                    src/sunstone/public/js/sunstone-util.js"
1412

    
1413
SELF_SERVICE_PUBLIC_JS_PLUGINS_FILES="src/cloud/occi/lib/ui/public/js/plugins/compute.js \
1414
                    src/cloud/occi/lib/ui/public/js/plugins/configuration.js \
1415
                    src/cloud/occi/lib/ui/public/js/plugins/dashboard.js \
1416
                    src/cloud/occi/lib/ui/public/js/plugins/network.js \
1417
                    src/cloud/occi/lib/ui/public/js/plugins/storage.js"
1418

    
1419

    
1420
SELF_SERVICE_PUBLIC_CSS_FILES="src/cloud/occi/lib/ui/public/css/application.css \
1421
                    src/cloud/occi/lib/ui/public/css/layout.css \
1422
                    src/cloud/occi/lib/ui/public/css/login.css"
1423

    
1424
SELF_SERVICE_PUBLIC_CUSTOMIZE_FILES="src/cloud/occi/lib/ui/public/customize/custom.js"
1425

    
1426

    
1427
SELF_SERVICE_PUBLIC_VENDOR_DATATABLES=$SUNSTONE_PUBLIC_VENDOR_DATATABLES
1428
SELF_SERVICE_PUBLIC_VENDOR_JGROWL=$SUNSTONE_PUBLIC_VENDOR_JGROWL
1429
SELF_SERVICE_PUBLIC_VENDOR_JQUERY=$SUNSTONE_PUBLIC_VENDOR_JQUERY
1430
SELF_SERVICE_PUBLIC_VENDOR_JQUERYUI=$SUNSTONE_PUBLIC_VENDOR_JQUERYUI
1431
SELF_SERVICE_PUBLIC_VENDOR_JQUERYUIIMAGES=$SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES
1432
SELF_SERVICE_PUBLIC_VENDOR_JQUERYLAYOUT=$SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT
1433
SELF_SERVICE_PUBLIC_VENDOR_FLOT=$SUNSTONE_PUBLIC_VENDOR_FLOT
1434
SELF_SERVICE_PUBLIC_VENDOR_CRYPTOJS=$SUNSTONE_PUBLIC_VENDOR_CRYPTOJS
1435
SELF_SERVICE_PUBLIC_VENDOR_FILEUPLOADER=$SUNSTONE_PUBLIC_VENDOR_FILEUPLOADER
1436
SELF_SERVICE_PUBLIC_VENDOR_XML2JSON=$SUNSTONE_PUBLIC_VENDOR_XML2JSON
1437

    
1438
SELF_SERVICE_PUBLIC_IMAGES_FILES="\
1439
src/cloud/occi/lib/ui/public/images/ajax-loader.gif \
1440
src/cloud/occi/lib/ui/public/images/green_bullet.png \
1441
src/cloud/occi/lib/ui/public/images/login_over.png \
1442
src/cloud/occi/lib/ui/public/images/login.png \
1443
src/cloud/occi/lib/ui/public/images/network_icon.png \
1444
src/cloud/occi/lib/ui/public/images/one-compute.png \
1445
src/cloud/occi/lib/ui/public/images/one-network.png \
1446
src/cloud/occi/lib/ui/public/images/one-storage.png \
1447
src/cloud/occi/lib/ui/public/images/opennebula-selfservice-big.png \
1448
src/cloud/occi/lib/ui/public/images/opennebula-selfservice-icon.png \
1449
src/cloud/occi/lib/ui/public/images/opennebula-selfservice-small.png \
1450
src/cloud/occi/lib/ui/public/images/panel.png \
1451
src/cloud/occi/lib/ui/public/images/panel_short.png \
1452
src/cloud/occi/lib/ui/public/images/pbar.gif \
1453
src/cloud/occi/lib/ui/public/images/red_bullet.png \
1454
src/cloud/occi/lib/ui/public/images/Refresh-icon.png \
1455
src/cloud/occi/lib/ui/public/images/server_icon.png \
1456
src/cloud/occi/lib/ui/public/images/storage_icon.png \
1457
src/cloud/occi/lib/ui/public/images/vnc_off.png \
1458
src/cloud/occi/lib/ui/public/images/vnc_on.png \
1459
src/cloud/occi/lib/ui/public/images/yellow_bullet.png"
1460

    
1461
SELF_SERVICE_PUBLIC_LOCALE_EN_US="src/cloud/occi/lib/ui/public/locale/en_US/en_US.js"
1462
SELF_SERVICE_PUBLIC_LOCALE_ES_ES="src/cloud/occi/lib/ui/public/locale/es_ES/es_ES.js \
1463
                                  src/cloud/occi/lib/ui/public/locale/es_ES/es_datatable.txt"
1464
SELF_SERVICE_PUBLIC_LOCALE_FR_FR="src/cloud/occi/lib/ui/public/locale/fr_FR/fr_FR.js \
1465
                                  src/cloud/occi/lib/ui/public/locale/fr_FR/fr_datatable.txt"
1466
SELF_SERVICE_PUBLIC_LOCALE_FR_CA="src/cloud/occi/lib/ui/public/locale/fr_CA/fr_CA.js \
1467
                                  src/cloud/occi/lib/ui/public/locale/fr_CA/fr_datatable.txt"
1468

    
1469
#-----------------------------------------------------------------------------
1470
# MAN files
1471
#-----------------------------------------------------------------------------
1472

    
1473
MAN_FILES="share/man/oneauth.1.gz \
1474
        share/man/oneacl.1.gz \
1475
        share/man/onehost.1.gz \
1476
        share/man/oneimage.1.gz \
1477
        share/man/oneuser.1.gz \
1478
        share/man/onevm.1.gz \
1479
        share/man/onevnet.1.gz \
1480
        share/man/onetemplate.1.gz \
1481
        share/man/onegroup.1.gz \
1482
        share/man/onedb.1.gz \
1483
        share/man/onedatastore.1.gz \
1484
        share/man/onecluster.1.gz \
1485
        share/man/econe-describe-images.1.gz \
1486
        share/man/econe-describe-instances.1.gz \
1487
        share/man/econe-register.1.gz \
1488
        share/man/econe-run-instances.1.gz \
1489
        share/man/econe-terminate-instances.1.gz \
1490
        share/man/econe-upload.1.gz \
1491
        share/man/occi-compute.1.gz \
1492
        share/man/occi-network.1.gz \
1493
        share/man/occi-storage.1.gz \
1494
        share/man/onezone.1.gz \
1495
        share/man/onevdc.1.gz"
1496

    
1497
#-----------------------------------------------------------------------------
1498
#-----------------------------------------------------------------------------
1499
# INSTALL.SH SCRIPT
1500
#-----------------------------------------------------------------------------
1501
#-----------------------------------------------------------------------------
1502

    
1503
# --- Create OpenNebula directories ---
1504

    
1505
if [ "$UNINSTALL" = "no" ] ; then
1506
    for d in $MAKE_DIRS; do
1507
        mkdir -p $DESTDIR$d
1508
    done
1509

    
1510
    # Remove old migrators
1511
    rm $LIB_LOCATION/ruby/onedb/*.rb &> /dev/null
1512
fi
1513

    
1514
# --- Install/Uninstall files ---
1515

    
1516
do_file() {
1517
    if [ "$UNINSTALL" = "yes" ]; then
1518
        rm $2/`basename $1`
1519
    else
1520
        if [ "$LINK" = "yes" ]; then
1521
            ln -s $SRC_DIR/$1 $DESTDIR$2
1522
        else
1523
            cp $SRC_DIR/$1 $DESTDIR$2
1524
        fi
1525
    fi
1526
}
1527

    
1528

    
1529
if [ "$CLIENT" = "yes" ]; then
1530
    INSTALL_SET=${INSTALL_CLIENT_FILES[@]}
1531
elif [ "$SUNSTONE" = "yes" ]; then
1532
    INSTALL_SET="${INSTALL_SUNSTONE_RUBY_FILES[@]} ${INSTALL_SUNSTONE_FILES[@]}"
1533
elif [ "$OZONES" = "yes" ]; then
1534
    INSTALL_SET="${INSTALL_OZONES_RUBY_FILES[@]} ${INSTALL_OZONES_FILES[@]}"
1535
else
1536
    INSTALL_SET="${INSTALL_FILES[@]} ${INSTALL_OZONES_FILES[@]} \
1537
                 ${INSTALL_SUNSTONE_FILES[@]} ${INSTALL_SELF_SERVICE_FILES[@]}"
1538
fi
1539

    
1540
for i in ${INSTALL_SET[@]}; do
1541
    SRC=$`echo $i | cut -d: -f1`
1542
    DST=`echo $i | cut -d: -f2`
1543

    
1544
    eval SRC_FILES=$SRC
1545

    
1546
    for f in $SRC_FILES; do
1547
        do_file $f $DST
1548
    done
1549
done
1550

    
1551
if [ "$INSTALL_ETC" = "yes" ] ; then
1552
    if [ "$SUNSTONE" = "yes" ]; then
1553
        INSTALL_ETC_SET="${INSTALL_SUNSTONE_ETC_FILES[@]}"
1554
    elif [ "$OZONES" = "yes" ]; then
1555
        INSTALL_ETC_SET="${INSTALL_OZONES_ETC_FILES[@]}"
1556
    else
1557
        INSTALL_ETC_SET="${INSTALL_ETC_FILES[@]} \
1558
                         ${INSTALL_SUNSTONE_ETC_FILES[@]} \
1559
                         ${INSTALL_OZONES_ETC_FILES[@]}"
1560
    fi
1561

    
1562
    for i in ${INSTALL_ETC_SET[@]}; do
1563
        SRC=$`echo $i | cut -d: -f1`
1564
        DST=`echo $i | cut -d: -f2`
1565

    
1566
        eval SRC_FILES=$SRC
1567

    
1568
        OLD_LINK=$LINK
1569
        LINK="no"
1570

    
1571
        for f in $SRC_FILES; do
1572
            do_file $f $DST
1573
        done
1574

    
1575
        LINK=$OLD_LINK
1576
   done
1577
fi
1578

    
1579
# --- Set ownership or remove OpenNebula directories ---
1580

    
1581
if [ "$UNINSTALL" = "no" ] ; then
1582
    for d in $CHOWN_DIRS; do
1583
        chown -R $ONEADMIN_USER:$ONEADMIN_GROUP $DESTDIR$d
1584
    done
1585
else
1586
    for d in `echo $DELETE_DIRS | awk '{for (i=NF;i>=1;i--) printf $i" "}'`; do
1587
        rmdir $d
1588
    done
1589
fi