blob: 02b7469a962f25a84b5d3abaa8c411806d82be35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
post_install() {
echo 'Default login is admin:admin'
echo 'Change it in /etc/gotify/server.env or the web ui before exposing the service!'
}
post_upgrade() {
if [[ $(vercmp '2.0.14-4' "$2") -eq 1 ]]; then
echo 'Default port for gotify-server has changed with version "2.0.14-4"'
echo 'old port: 8080'
echo 'new port: 9071'
fi
if [[ $(vercmp '3.0.0' "$2") -eq 1 ]]; then
echo 'gotify-server 3.x no longer supports /etc/gotify/config.yml.'
echo 'Configuration now lives in /etc/gotify/server.env (environment variable format).'
echo 'If you modified config.yml, it was saved as /etc/gotify/config.yml.pacsave. Convert it with:'
echo ' gotify-server migrate-config /etc/gotify/config.yml.pacsave > /etc/gotify/server.env'
echo 'Migration guide: https://gotify.net/docs/migrate-to-3'
fi
}
|