Skip to content

Commit 761e76b

Browse files
authored
Merge pull request #212 from einonm/fix_xdmod_update
Fix expect script not dealing with a new xdmod version check & update version
2 parents 7ec4fd9 + 615ee9a commit 761e76b

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
lines changed

xdmod/install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ log_info() {
1010
log_info "Installing required packages for xdmod.."
1111

1212
ARCHTYPE=`uname -m`
13+
XDMOD_VERSION="11.0.1-1"
1314

1415
#------------------------
1516
# For the purpose of the tutorial we install some extra packages that
@@ -46,9 +47,9 @@ dnf install -y \
4647
# be installed in the same container. In a production deployment they may be installed
4748
# on separate hosts.
4849
#------------------------
49-
dnf install -y https://github.com/ubccr/xdmod/releases/download/v11.0.0-1.0/xdmod-11.0.0-1.0.el8.noarch.rpm \
50-
https://github.com/ubccr/xdmod-ondemand/releases/download/v11.0.0-1.0/xdmod-ondemand-11.0.0-1.0.el8.noarch.rpm \
51-
https://github.com/ubccr/xdmod-supremm/releases/download/v11.0.0-1.0/xdmod-supremm-11.0.0-1.0.el8.noarch.rpm \
50+
dnf install -y https://github.com/ubccr/xdmod/releases/download/v${XDMOD_VERSION}/xdmod-${XDMOD_VERSION}.el8.noarch.rpm \
51+
https://github.com/ubccr/xdmod-ondemand/releases/download/v${XDMOD_VERSION}/xdmod-ondemand-${XDMOD_VERSION}.el8.noarch.rpm \
52+
https://github.com/ubccr/xdmod-supremm/releases/download/v${XDMOD_VERSION}/xdmod-supremm-${XDMOD_VERSION}.el8.noarch.rpm \
5253
https://github.com/ubccr/supremm/releases/download/2.0.0/supremm-2.0.0-1.el8.${ARCHTYPE}.rpm
5354

5455
#------------------------

xdmod/scripts/helper-functions.tcl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,14 @@ proc confirmDropDb { response } {
6262
}
6363
send $response\n
6464
}
65+
66+
proc ignoreNewVersion {} {
67+
expect {
68+
"Do you want to continue" {
69+
send "yes"
70+
exp_continue
71+
}
72+
"Open XDMoD Setup" {
73+
}
74+
}
75+
}

xdmod/scripts/xdmod-setup-finish.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ source [file join [file dirname [info script]] helper-functions.tcl]
1414
set timeout 240
1515
spawn "xdmod-setup"
1616

17+
ignoreNewVersion
1718
selectMenuOption 5
1819
provideInput {Username:} admin
1920
providePassword {Password:} admin

xdmod/scripts/xdmod-setup-ondemand.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ source [file join [file dirname [info script]] helper-functions.tcl]
1919
set timeout 240
2020
spawn "xdmod-setup"
2121

22+
23+
ignoreNewVersion
2224
# Add an OnDemand resource
2325
selectMenuOption 4
2426

xdmod/scripts/xdmod-setup-start.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ source [file join [file dirname [info script]] helper-functions.tcl]
1414
set timeout 240
1515
spawn "xdmod-setup"
1616

17+
ignoreNewVersion
1718
selectMenuOption 1
1819
answerQuestion {Site Address} https://localhost:4443/
1920
provideInput {Email Address:} [email protected]

xdmod/scripts/xdmod-setup-supremm.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ source [file join [file dirname [info script]] helper-functions.tcl]
1919
set timeout 240
2020
spawn "xdmod-setup"
2121

22+
ignoreNewVersion
2223
selectMenuOption 9
2324

2425
selectMenuOption d

0 commit comments

Comments
 (0)