diff options
Diffstat (limited to 'airdcpp.install')
-rw-r--r-- | airdcpp.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/airdcpp.install b/airdcpp.install new file mode 100644 index 000000000000..9214e799c56b --- /dev/null +++ b/airdcpp.install @@ -0,0 +1,15 @@ +post_install() { + getent group airdcpp &>/dev/null || groupadd -r -g 170 airdcpp >/dev/null + getent passwd airdcpp &>/dev/null || useradd -r -u 170 -g airdcpp -d /var/lib/airdcpp -s /bin/false airdcpp >/dev/null + true + + echo "Create configuration and enable user service by:" + echo "$ airdcppd --configure" + echo "$ systemctl --user enable airdcpp" +} + +post_remove() { + getent passwd airdcpp &>/dev/null && userdel airdcpp >/dev/null + getent group airdcpp &>/dev/null && groupdel airdcpp >/dev/null + true +} |