summaryrefslogtreecommitdiff
path: root/jabberd2/install
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-10 11:41:22 +0100
committerErich Eckner <git@eckner.net>2018-12-10 11:41:22 +0100
commit28fb92e62268aaf43e5588323126a9456c0732e6 (patch)
treed3b80dd746a859cfe3cb6533a771e66bcc378601 /jabberd2/install
parent6e50721bf3b6cc7e4e7e0ca3a0c1e04eddb290d4 (diff)
downloadarchlinuxewe.git.save-28fb92e62268aaf43e5588323126a9456c0732e6.tar.xz
jabberd2 -> jabberd2-git
Diffstat (limited to 'jabberd2/install')
-rw-r--r--jabberd2/install21
1 files changed, 0 insertions, 21 deletions
diff --git a/jabberd2/install b/jabberd2/install
deleted file mode 100644
index e4771c68..00000000
--- a/jabberd2/install
+++ /dev/null
@@ -1,21 +0,0 @@
-post_install() {
- getent group jabber &>/dev/null || groupadd -r jabber >/dev/null
- getent passwd jabber &>/dev/null || useradd -r -g jabber -d /etc/jabberd -s /bin/false -c jabber jabber >/dev/null
- mkdir -p /var/lib/jabberd/{db,log,pid}
- [ -f /var/lib/jabberd/db/sqlite.db ] || sqlite3 /var/lib/jabberd/db/sqlite.db < /usr/share/jabberd/db-setup.sqlite
- chown -R jabber:jabber /var/lib/jabberd
- chown -R root:jabber /etc/jabberd
- cat <<EOF
-==> Customize the configuration files in /etc/jabberd/.
-==> For details, see: https://github.com/jabberd2/jabberd2/wiki/InstallGuide
-EOF
-}
-
-pre_remove() {
- systemctl stop jabberd.service
-}
-
-post_remove() {
- getent passwd jabber &>/dev/null && userdel jabber >/dev/null
- getent group jabber &>/dev/null && groupdel jabber >/dev/null
-}