summarylogtreecommitdiffstats
path: root/dendrite.install
blob: a14637dcf15eedb24ec5e5ebc8a15d1872b22f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
post_install(){
 cat <<INFO

You should now generate a new configuration either with

    sudo cp /etc/dendrite/config-example.yaml /etc/dendrite/config.yaml

or

    dendrite-generate-config | sudo tee /etc/dendrite/config.yaml

INFO
}

post_upgrade(){
 # notify about breaking changes
 # https://wiki.archlinux.org/title/PKGBUILD#install
 if [[ $1 != 0.6* ]] && [[ $2 == 0.6* ]]; then
  cat <<INFO

Dendrite is now using configuration v2, as it moved from Kafka to NATS Jetstream.
You are advised to backup your previous configuration located at

    /etc/dendrite/config.yaml

and generate a new one either copying

    /etc/dendrite/config-example.yaml

or by running

    dendrite-generate-config | sudo tee /etc/dendrite/config.yaml

INFO
 fi
}