summarylogtreecommitdiffstats
path: root/dependency-check-cli.install
blob: f01989dcb7a0f3bd59ba3092c8da26756c927fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
  groupadd dependencycheck
  mkdir /opt/dependency-check/data
  chown -R root:dependencycheck /opt/dependency-check/data
  chmod -R g+w /opt/dependency-check/data
  echo "    Users should be added to the 'dependencycheck' group to be able to perform vulnerability database updates."
  echo "    $ sudo gpasswd -a <username> dependencycheck"
}

post_upgrade() {
  chown -R root:dependencycheck /opt/dependency-check/data
  chmod -R g+w /opt/dependency-check/data
}

post_remove() {
  groupdel dependencycheck
  rm -fr /opt/dependency-check
}