diff options
author | Patrick McCarty | 2015-06-08 20:39:59 -0700 |
---|---|---|
committer | Patrick McCarty | 2015-06-08 20:40:20 -0700 |
commit | e39ee48e435271c99d11598a9085f4e30f7bd992 (patch) | |
tree | add642195e3f587b55b8fd6cccbb7def71a85505 /mock.install | |
download | aur-e39ee48e435271c99d11598a9085f4e30f7bd992.tar.gz |
Initial import
Diffstat (limited to 'mock.install')
-rw-r--r-- | mock.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mock.install b/mock.install new file mode 100644 index 000000000000..493664c8cd9f --- /dev/null +++ b/mock.install @@ -0,0 +1,11 @@ +post_install() { + getent group mock >/dev/null || groupadd -r mock + install -o root -g mock -m 02755 -d /var/{cache,lib}/mock + + echo 'You must add yourself to the mock group in order to run mock.' +} + +post_remove() { + getent group mock >/dev/null && groupdel mock + echo 'Make sure to empty out /var/lib/mock and /var/cache/mock' +} |