forked from extern/shorewall_code
Fix bug in the .spec file
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6003 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
05360661ea
commit
f90e120899
@ -41,27 +41,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
if [ $1 -eq 1 ]; then
|
|
||||||
if [ -x /sbin/insserv ]; then
|
|
||||||
/sbin/insserv /etc/rc.d/shorewall
|
|
||||||
elif [ -x /sbin/chkconfig ]; then
|
|
||||||
/sbin/chkconfig --add shorewall;
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
if [ -x /sbin/insserv ]; then
|
|
||||||
/sbin/insserv -r /etc/init.d/shorewall
|
|
||||||
elif [ -x /sbin/chkconfig ]; then
|
|
||||||
/sbin/chkconfig --del shorewall
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f /etc/shorewall/startup_disabled
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%attr(0755,root,root) %dir /usr/share/shorewall-shell
|
%attr(0755,root,root) %dir /usr/share/shorewall-shell
|
||||||
|
Loading…
Reference in New Issue
Block a user