summarylogtreecommitdiffstats
path: root/python-agent-rtfm.install
blob: bcd75f72b3cfc7c2af8e3d19fb26fe619c58462a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
    echo ":: Run 'rtfm init' to create ~/.rtfm/config.yaml"
    echo ":: Then run 'rtfm ingest' to index documentation"
    echo "::"
    echo ":: To start the server automatically:"
    echo "::   systemctl --user daemon-reload"
    echo "::   systemctl --user enable --now rtfm"
    echo "::"
    echo ":: To auto-update docs on boot:"
    echo "::   systemctl --user enable rtfm-update"
}

post_upgrade() {
    echo ":: rtfm has been upgraded."
    echo ":: If using systemd, the server will restart automatically."
}