summarylogtreecommitdiffstats
path: root/copilot-api.install
blob: c9efd03675442cc25652f88c6a4c44dd387f2d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  echo '==> Authenticate before starting the service:'
  echo '    sudo -u copilot-api HOME=/var/lib/copilot-api copilot-api auth'
  echo ''
  echo '==> Then enable and start the service:'
  echo '    systemctl enable --now copilot-api'
  echo ''
  echo '==> The API will be available at http://localhost:4141'
}

post_upgrade() {
  echo '==> copilot-api upgraded. Restart the service to apply:'
  echo '    systemctl restart copilot-api'
}