|
...
|
...
|
@@ -183,10 +183,8 @@ if [ -z "$templateuuid" ]; then
|
|
183
|
183
|
# Copy the tools DEB to the XS web server
|
|
184
|
184
|
XS_TOOLS_URL="https://github.com/downloads/citrix-openstack/warehouse/xe-guest-utilities_5.6.100-651_amd64.deb"
|
|
185
|
185
|
ISO_DIR="/opt/xensource/packages/iso"
|
|
186
|
|
- XS_TOOLS_FILE_NAME="xs-tools.deb"
|
|
187
|
|
- XS_TOOLS_PATH="/root/$XS_TOOLS_FILE_NAME"
|
|
188
|
186
|
if [ -e "$ISO_DIR" ]; then
|
|
189
|
|
- TOOLS_ISO=$(ls -1 $ISO_DIR/xs-tools-*.iso | head -1)
|
|
|
187
|
+ TOOLS_ISO=$(ls -1 $ISO_DIR/*-tools-*.iso | head -1)
|
|
190
|
188
|
TMP_DIR=/tmp/temp.$RANDOM
|
|
191
|
189
|
mkdir -p $TMP_DIR
|
|
192
|
190
|
mount -o loop $TOOLS_ISO $TMP_DIR
|