summarylogtreecommitdiffstats
path: root/jira.install
blob: fa201c2ebb67d32c9158bf5f7c462af8d17aa878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
    if ! getent passwd jira > /dev/null; then
        useradd -r jira
    fi

    chown -R jira:jira /opt/atlassian-jira/{logs,temp,webapps,work,conf} /var/opt/atlassian-jira
}

pre_upgrade() {
    systemctl stop jira.service
}

post_upgrade() {
    chown -R jira:jira /opt/atlassian-jira/{logs,temp,webapps,work,conf} /var/opt/atlassian-jira
    systemctl start jira.service
    }