/[packages]/updates/1/jetty/current/SPECS/jetty.spec
ViewVC logotype

Diff of /updates/1/jetty/current/SPECS/jetty.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 338300 by luigiwalser, Thu Jan 3 17:06:17 2013 UTC revision 338301 by luigiwalser, Thu Jan 3 18:45:45 2013 UTC
# Line 321  popd Line 321  popd
321  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
322    
323  %pre  %pre
324    # Use /bin/sh so init script will start properly.
325    %_pre_useradd %username %homedir /bin/sh || :
326    
327  # Add the "jetty" user and group  # Add the "jetty" user and group
328  %_pre_groupadd %username %username &>/dev/null || :  %_pre_groupadd %username %username &>/dev/null || :
 # Use /bin/sh so init script will start properly.  
 %_pre_useradd %username %homedir /bin/sh || :  
329    
330  %post  %post
331  [ -x /sbin/chkconfig ] && /sbin/chkconfig --add %{name}  [ -x /sbin/chkconfig ] && /sbin/chkconfig --add %{name}
# Line 340  rm -rf $RPM_BUILD_ROOT Line 341  rm -rf $RPM_BUILD_ROOT
341  if [ $1 = 0 ]; then  if [ $1 = 0 ]; then
342      [ -f /var/lock/subsys/%{name} ] && %{_initrddir}/%{name} stop      [ -f /var/lock/subsys/%{name} ] && %{_initrddir}/%{name} stop
343      [ -f %{_initrddir}/%{name} -a -x /sbin/chkconfig ] && /sbin/chkconfig --del %{name}      [ -f %{_initrddir}/%{name} -a -x /sbin/chkconfig ] && /sbin/chkconfig --del %{name}
   
     %_postun_userdel %{name} >> /dev/null 2>&1 || :  
344  fi  fi
345    
346  %files  %files

Legend:
Removed from v.338300  
changed lines
  Added in v.338301

  ViewVC Help
Powered by ViewVC 1.1.30