summarylogtreecommitdiffstats
path: root/mtg.install
blob: cbbf347ba0efef05b27557925ce74ac59f68b8d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
post_install() {
  setcap cap_net_bind_service=ep usr/bin/mtg 2>/dev/null
}

post_upgrade() {
  post_install "$1"

  if [[ "$1" == 2* ]] && [[ "$2" == 1* ]]; then
      echo "Warning: the configuration format for mtg 2.0 has changed - see /etc/mtg/example.toml for details!"
  fi
}