summarylogtreecommitdiffstats
path: root/dependency-check-cli.install
diff options
context:
space:
mode:
authorfxbru2020-04-07 17:58:51 +0200
committerfxbru2020-04-07 17:58:51 +0200
commit3d7a724950537365474059fc91ba791f2249ae84 (patch)
treea3d4b49f8dddca38066a30b7d2fe6420e6712013 /dependency-check-cli.install
downloadaur-3d7a724950537365474059fc91ba791f2249ae84.tar.gz
5.3.2-1
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
+}