Hello
I'm trying to script an unattended upgrade (not a fresh install!) of our JIRA instances.
The response.varfile is not a solution because it does not take into account all params.
I started at first to feed to answers to the installer like this:
cat << EOF | ./atlassian-jira-software-${TARGET_JIRA_VERSION}-x64.bin
o
3
/opt/atlassian/jira
n
y
u
n
EOF
where the blank lines correspond to the "pages" of modified/added/removed files that you need to confirm before reaching the "real" upgrade question...
But my concern is that depending on my JIRA instances, the number of modified/added/removed files (compared to initial install) is not fixed (some may have no changes, some may have dozens of modifications).
This means I cannot get this script generic enough. I've tried to used the "expect" linux command to try the same thing :
spawn /tmp/atlassian-jira-software-${TARGET_JIRA_VERSION}-x64.bin
expect {
"This will install JIRA Software" {
send "o\r"
exp_continue
}
"Choose the appropriate installation or upgrade option" {
send "3\r"
exp_continue
}
"Existing installation directory" {
send "/opt/atlassian/jira\r"
exp_continue
}
"Back up JIRA home directory" {
send "n\r"
exp_continue
}
#THIS IS FOR sending return to each page of modified/added/removed files
#Each time we have a page, send return
"\[Enter\]" {
send "\r"
exp_continue
}
"Have you completed all these steps" {
send "y\r"
exp_continue
}
"Upgrade \[u, Enter\], Exit \[e\]\r" {
send "e\r"
exp_continue
}
}
But with no luck either, because it seems those pages are not exactly catched by the script.
Has anyone already been able to handle this upgrade in unattended mode?
Or is there a way AHEAD of calling the script to know how many modified/added/removed files there are in my instance?
Regards
I had the same issue with Confluence unattended installation, per Atlassians they have no plan to fix or implement this feature in near future. Don't use it for any Atlassian products
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.