create jabber user and group [release 2.3.2-3mamba;Fri Mar 06 2015]
This commit is contained in:
parent
68d098ee43
commit
eb08df6ae0
20
jabberd.spec
20
jabberd.spec
@ -1,6 +1,9 @@
|
||||
%define jabber_groupid 65438
|
||||
%define jabber_userid 65438
|
||||
|
||||
Name: jabberd
|
||||
Version: 2.3.2
|
||||
Release: 2mamba
|
||||
Release: 3mamba
|
||||
Summary: JabberD XMPP Server
|
||||
Group: System/Servers
|
||||
Vendor: openmamba
|
||||
@ -87,6 +90,14 @@ MySQL storage support for %{name}.
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%pre
|
||||
if [ $1 -ge 1 ]; then
|
||||
groupadd jabber -g %{jabber_groupid} 2>/dev/null
|
||||
useradd -u %{jabber_userid} -c 'Jabber service' -d /dev/null -g jabber \
|
||||
-s /bin/false jabber 2>/dev/null
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%post
|
||||
%systemd_post jabberd-c2s
|
||||
%systemd_post jabberd-router
|
||||
@ -101,6 +112,10 @@ MySQL storage support for %{name}.
|
||||
%systemd_preun jabberd-s2s
|
||||
%systemd_preun jabberd-sm
|
||||
%systemd_preun jabberd
|
||||
if [ $1 -eq 0 ]; then
|
||||
userdel jabber 2>/dev/null
|
||||
groupdel jabber 2>/dev/null
|
||||
fi
|
||||
:
|
||||
|
||||
%postun
|
||||
@ -259,6 +274,9 @@ MySQL storage support for %{name}.
|
||||
%doc tools/db-setup.mysql tools/db-update.mysql
|
||||
|
||||
%changelog
|
||||
* Fri Mar 06 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-3mamba
|
||||
- create jabber user and group
|
||||
|
||||
* Thu Mar 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-2mamba
|
||||
- enable db backend plugins
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user