Create /home/znc when installed

This commit is contained in:
Nick Bebout 2011-08-14 15:06:56 -05:00
parent c3fe719337
commit 3848b960cd
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ Summary: An advanced IRC bouncer
Name: znc
Version: 0.200
#Release: 0.1.20110801git%{?dist}
Release: 0.1.rc1%{?dist}
Release: 0.2.rc1%{?dist}
#Release: 1%{?dist}
License: GPLv2 with exceptions
Group: System Environment/Daemons
@ -104,6 +104,8 @@ getent group znc >/dev/null || groupadd -r znc
getent passwd znc >/dev/null || \
useradd -r -g znc -d /home/znc -s /sbin/nologin \
-c "Account for ZNC to run as" znc
mkdir -p /home/znc
chown znc:znc /home/znc
exit 0
%install
@ -231,6 +233,9 @@ fi
#%{_libdir}/znc/perleval.pm
%changelog
* Sun Aug 14 2011 Nick Bebout <nb@fedoraproject.org> - 0.200-0.2.rc1
- Create /home/znc upon install
* Sat Aug 13 2011 Nick Bebout <nb@fedoraproject.org> - 0.200-0.1.rc1
- Update to 0.200-rc1