diff options
author | Mansour Behabadi | 2015-11-24 14:17:10 +1100 |
---|---|---|
committer | Mansour Behabadi | 2015-11-24 14:17:10 +1100 |
commit | 3c315ffa9d3e3f98144b8e8163b84cc37bb3c162 (patch) | |
tree | 99d009adc33abe0c4e90c9f0e85083d43a20acd9 /upmpdcli.install | |
download | aur-3c315ffa9d3e3f98144b8e8163b84cc37bb3c162.tar.gz |
Initial commit
Diffstat (limited to 'upmpdcli.install')
-rw-r--r-- | upmpdcli.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/upmpdcli.install b/upmpdcli.install new file mode 100644 index 000000000000..c68f7f6b6dbd --- /dev/null +++ b/upmpdcli.install @@ -0,0 +1,12 @@ +post_install() { + if ! getent group upmpdcli >/dev/null; then + groupadd --system upmpdcli >/dev/null + fi + if ! getent passwd upmpdcli >/dev/null; then + useradd -g upmpdcli --system upmpdcli -s /bin/false -d / >/dev/null + fi +} + +post_upgrade() { + post_install $1 +} |