summarylogtreecommitdiffstats
path: root/ufw-docker.install
blob: 959513e6f4dc6c3d394dcbf68c8e9ff99abeb1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
  echo "Now you should back up /etc/ufw/after.rules, and run:"
  echo "  # ufw-docker install"
  echo "If you want to show help , just run:"
  echo "  # ufw-docker help"
  echo "Check installing status, run:"
  echo "  # ufw-docker check"
  echo "Check status, run:"
  echo "  # ufw-docker status"
}

post_remove() {
  echo "rest after.rules to default"
  rm /etc/ufw/after.rules
  mv /etc/ufw/after.rules-ufw-docker* /etc/ufw/after.rules
}