summarylogtreecommitdiffstats
path: root/elasticsearch.install
blob: 6077726f4f22f5c5a1d664e7bc4b1a41095341c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
    systemd-sysusers elasticsearch.conf
    systemd-tmpfiles --create elasticsearch.conf
}

post_upgrade(){
    systemd-tmpfiles --create elasticsearch.conf

    if [ "$(vercmp $2 2.0.0)" -lt 0 ]; then
        echo " >> "
        echo " >> Major version update. Please take a look at breaking changes https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking-changes-2.0.html and remove incompatible plugins from /usr/share/elasticsearch/plugins"
        echo " >> "
    fi
}