summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradford Smith2020-01-15 21:45:21 -0500
committerBradford Smith2020-01-15 21:45:21 -0500
commit54135b0194dbf97d430737040a7af3f297ff24c5 (patch)
treee147e11f602bf83102e4732d9727649ea92b45e4
parenta791868846326c3b3492ad18521fd8576dc7607f (diff)
downloadaur-54135b0194dbf97d430737040a7af3f297ff24c5.tar.gz
Add permissions change to cache file
Forgot to update permissions for the group to work right.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--informant.install5
3 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0c44daa96674..9faf1193d824 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = informant
pkgdesc = An Arch Linux News reader and pacman hook
pkgver = 0.1.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/bradford-smith94/informant
install = informant.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 86a24a634d62..83faab6276fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=informant
pkgver=0.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="An Arch Linux News reader and pacman hook"
arch=('any')
url="https://github.com/bradford-smith94/$pkgname"
diff --git a/informant.install b/informant.install
index c950fac6f4db..33493a403a03 100644
--- a/informant.install
+++ b/informant.install
@@ -1,7 +1,8 @@
post_install() {
groupadd informant
- touch var/cache/informant.dat
- chgrp informant var/cache/informant.dat
+ touch /var/cache/informant.dat
+ chgrp informant /var/cache/informant.dat
+ chmod 664 /var/cache/informant.dat
printf 'NOTE: Add yourself to group "informant" to avoid the need for sudo'
}