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} |
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 |