blob: f1283604379016bc87a91f13fab0f39cfc7f8d17 (
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
|
post_install() {
echo ""
echo "Adjust the default configuration in '/etc/conf.d/reitti' and enable 'reitti.service'."
echo "If you want to use nginx, an example config is available in '/usr/share/doc/reitti/examples/nginx.conf'."
echo ""
}
post_upgrade() {
if $(( $(vercmp $2 "5.0.1-1") < 0)); then
echo ""
echo "This release will perform a major database migration."
echo "Please see https://www.dedicatedcode.com/projects/reitti/5.0/upgrade/"
echo ""
echo "Remember to update the tile cache nginx config, see '/usr/share/doc/reitti/examples/nginx.conf'."
echo "Important changes:"
echo "- Single /custom location that needs a rewrite"
echo "- Proxy upstream is now set by \$http_x_reitti_upstream_url header"
echo "- nginx needs a configured resolver"
echo "- proxy_cache_key set to \$custom_upstream due to single cache folder"
echo ""
fi
if (( $(vercmp $2 "4.0.0-1") < 0 )); then
echo ""
echo "reitti no longer requires a rabbitmq instance since the dependency has been removed upstream."
echo "The tile cache needs to be updated as well, please check:"
echo "https://www.dedicatedcode.com/projects/reitti/4.0/upgrade/"
echo "https://github.com/dedicatedcode/reitti/blob/main/docker/tiles-cache/nginx.conf"
echo ""
fi
if (( $(vercmp $2 "3.4.1-2") < 0 )); then
echo ""
echo "reitti now expects users to provide a TILE_CACHE environment variable, see /usr/share/doc/reitti/examples/nginx.conf"
echo ""
fi
}
|