summarylogtreecommitdiffstats
path: root/dependency-check-cli.install
diff options
context:
space:
mode:
Diffstat (limited to 'dependency-check-cli.install')
-rw-r--r--dependency-check-cli.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/dependency-check-cli.install b/dependency-check-cli.install
new file mode 100644
index 00000000000..847811504b2
--- /dev/null
+++ b/dependency-check-cli.install
@@ -0,0 +1,16 @@
+post_install() {
+ groupadd dependencycheck
+ 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
+}