diff options
author | Bennett Piater | 2016-11-29 18:46:24 +0100 |
---|---|---|
committer | Bennett Piater | 2016-11-29 18:46:24 +0100 |
commit | 5398ce02cca0ef8d69f35ea5a2129b14d644e33c (patch) | |
tree | 79da632f6bfa948507b4d51978da90156ff10211 /aursec.install | |
download | aur-5398ce02cca0ef8d69f35ea5a2129b14d644e33c.tar.gz |
initial commit
Diffstat (limited to 'aursec.install')
-rw-r--r-- | aursec.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/aursec.install b/aursec.install new file mode 100644 index 000000000000..3ca62c0a57c9 --- /dev/null +++ b/aursec.install @@ -0,0 +1,14 @@ +# Create the user and group if they don't exist + +post_install() { + if ! getent group aursec >/dev/null; then + groupadd --system aursec + fi + if ! getent passwd aursec >/dev/null; then + useradd --system -c 'aursec daemon user' -g aursec -d /var/aursec/ -s /bin/bash aursec + fi +} + +post_upgrade() { + post_install $1 +} |