summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfxbru2020-06-04 22:57:30 +0200
committerfxbru2020-06-04 22:57:30 +0200
commitcff088be45c328983498edb2cb2f76afb09e144c (patch)
tree63fdff04590ad971a6571cde705173cb749627e8
parent3d7a724950537365474059fc91ba791f2249ae84 (diff)
downloadaur-cff088be45c328983498edb2cb2f76afb09e144c.tar.gz
Fix missing /data folder before permission assignement
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--dependency-check-cli.install2
3 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 361383fddf4..690774cf09c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = dependency-check-cli
pkgdesc = Dependency-Check is a Software Composition Analysis (SCA) tool that attempts to detect publicly disclosed vulnerabilities contained within a project's dependencies.
pkgver = 5.3.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/jeremylong/DependencyCheck
install = dependency-check-cli.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 877923a90bc..1b5b5e29ea7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=dependency-check-cli
_pkgname=dependency-check
pkgver=5.3.2
-pkgrel=1
+pkgrel=2
pkgdesc="Dependency-Check is a Software Composition Analysis (SCA) tool that attempts to detect publicly disclosed vulnerabilities contained within a project's dependencies."
arch=('any')
depends=('java-runtime')
diff --git a/dependency-check-cli.install b/dependency-check-cli.install
index 847811504b2..0507027bd65 100644
--- a/dependency-check-cli.install
+++ b/dependency-check-cli.install
@@ -1,5 +1,6 @@
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."
@@ -7,6 +8,7 @@ post_install() {
}
post_upgrade() {
+ mkdir /opt/dependency-check/data
chown -R root:dependencycheck /opt/dependency-check/data
chmod -R g+w /opt/dependency-check/data
}