centos6.patch

Andrei Nistor, 09/17/2013 11:57 AM

Download (668 Bytes)

View differences:

centos6.spec 2013-09-17 14:24:18.246921937 +0300
300 300

  
301 301
%pre common
302 302
getent group oneadmin >/dev/null || groupadd -r -g %{oneadmin_gid} oneadmin
303
if ! grep -q oneadmin %{_sysconfdir}/passwd
303
if getent passwd oneadmin >/dev/null
304 304
then
305
    /usr/sbin/usermod -a -G oneadmin oneadmin > /dev/null
306
else
305 307
    /usr/sbin/useradd -r -m -d %{oneadmin_home} \
306 308
    -u %{oneadmin_uid} -g %{oneadmin_gid} \
307 309
    -s /bin/bash oneadmin 2> /dev/null
308
else
309
    /usr/sbin/usermod -a -G oneadmin oneadmin > /dev/null
310 310
fi
311 311

  
312 312
################################################################################