diff options
author | Brandon Giesing | 2015-06-19 20:56:05 -0500 |
---|---|---|
committer | Brandon Giesing | 2015-06-19 20:56:05 -0500 |
commit | 125c253b30c4e2c72cd5c45ce0e0761ff52e24c6 (patch) | |
tree | 18b7d99db17d7d9ef7504e1bb1f12f9f5425cf36 /jackett.install | |
download | aur-125c253b30c4e2c72cd5c45ce0e0761ff52e24c6.tar.gz |
Initial version
Diffstat (limited to 'jackett.install')
-rw-r--r-- | jackett.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/jackett.install b/jackett.install new file mode 100644 index 000000000000..24c913040d54 --- /dev/null +++ b/jackett.install @@ -0,0 +1,17 @@ +post_install() { + if grep -q "^jackett" /etc/group &> /dev/null ; then + groupmod -n jackett jackett &> /dev/null + else + groupadd -r jackett &> /dev/null + fi + if grep -q "^jackett:" /etc/passwd 2> /dev/null ; then + usermod -s /bin/false -c "jackett daemon" -d /usr/share/Jackett -g jackett jackett &> /dev/null + else + useradd -s /bin/false -c "jackett daemon user" -d /usr/share/Jackett -g jackett -r jackett &> /dev/null + fi + chown -R jackett: /usr/share/Jackett +} + +post_upgrade() { + post_install $1 +} |