aboutsummarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMaxime Poulin2016-02-12 18:01:24 -0500
committerMaxime Poulin2016-02-12 18:01:24 -0500
commit72ce7c1c277a83f6b6d07170e4cf9a674aedcb82 (patch)
treeacbf1962a1588b6319606d317448d457899e6b58 /install
downloadaur-72ce7c1c277a83f6b6d07170e4cf9a674aedcb82.tar.gz
Initial package of TheLounge IRC client
Diffstat (limited to 'install')
-rw-r--r--install10
1 files changed, 10 insertions, 0 deletions
diff --git a/install b/install
new file mode 100644
index 000000000000..b6ac4f39e6c2
--- /dev/null
+++ b/install
@@ -0,0 +1,10 @@
+post_install() {
+ groupadd thelounge &>/dev/null
+ useradd -g thelounge -d /etc/thelounge -s /bin/false thelounge &> /dev/null
+ chown -R thelounge:thelounge /etc/thelounge &> /dev/null
+}
+
+pre_remove() {
+ getent passwd thelounge &>/dev/null && userdel thelounge &> /dev/null
+}
+