summarylogtreecommitdiffstats
path: root/koito.install
blob: 4eabea20662865cc0164209d8169eb0b72ab6559 (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
post_install() {
  cat <<'EOF'
NOTE: Before starting Koito, complete these steps:

  1) Edit /etc/koito.env to configure your environment variables:
       • KOITO_ALLOWED_HOSTS
       (Note: Koito now uses a local SQLite database by default).

  2) Reload systemd and enable/start the service:
       # systemctl daemon-reload
       # systemctl enable --now koito.service

Enjoy Koito!
EOF
}

post_upgrade() {
  if [[ $(vercmp "$2" "0.2.1") -lt 0 ]]; then
    cat <<'EOF'
========================================================================
                             IMPORTANT
========================================================================
Koito v0.2.1 is a bridge release that migrates your database backend
from PostgreSQL to SQLite.

PLEASE BACKUP YOUR POSTGRESQL DATA BEFORE RESTARTING THE SERVICE!

To ensure automatic migration succeeds, make sure your
KOITO_DATABASE_URL is still properly set in /etc/koito.env.
========================================================================
EOF
  fi
}