diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-12-19 12:18:10 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-12-19 12:18:10 -0500 |
commit | 5c751c419afa94410cac0875f14a23b93c92b1bd (patch) | |
tree | 1121e15af1c6686a6e08f7db2539b6e1b1e281a4 /cobbler.spec | |
parent | 5c2c63cfd74112b1c2b1a93f25902d7018f10d57 (diff) | |
download | cobbler-5c751c419afa94410cac0875f14a23b93c92b1bd.tar.gz cobbler-5c751c419afa94410cac0875f14a23b93c92b1bd.tar.xz cobbler-5c751c419afa94410cac0875f14a23b93c92b1bd.zip |
Don't do chcon in the RPM
Diffstat (limited to 'cobbler.spec')
-rw-r--r-- | cobbler.spec | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cobbler.spec b/cobbler.spec index a8d5010b..b36fff60 100644 --- a/cobbler.spec +++ b/cobbler.spec @@ -76,15 +76,6 @@ PREFIX="--prefix=/usr" %{__python} setup.py install --optimize=1 --root=$RPM_BUILD_ROOT $PREFIX %post -# add selinux rules -if [ -x /usr/sbin/semanage ]; then - /usr/sbin/selinuxenabled - if [ "$?" -eq "0" ]; then - /usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler/images/.*" >/dev/null &2>1 || /bin/true - /usr/sbin/semanage fcontext -a -t public_content_t "/var/lib/tftpboot/images/.*" >/dev/null &2>1 || /bin/true - /usr/sbin/semanage fcontext -a -t public_content_t "/tftpboot/images/.*" >/dev/null &2>1 || /bin/true - fi -fi # backup config if [ -e /var/lib/cobbler/distros ]; then @@ -130,15 +121,6 @@ if [ "$1" -ge "1" ]; then /sbin/service cobblerd condrestart >/dev/null 2>&1 || : /sbin/service httpd condrestart >/dev/null 2>&1 || : fi -# remove selinux rules -if [ -x /usr/sbin/semanage ]; then - /usr/sbin/selinuxenabled - if [ "$?" -eq "0" ]; then - /usr/sbin/semanage fcontext -d "/var/www/cobbler/images/.*" 1>/dev/null 2>&1 || /bin/true - /usr/sbin/semanage fcontext -d "/var/lib/tftpboot/images/.*" 1>/dev/null 2>&1 || /bin/true - /usr/sbin/semanage fcontext -d "/tftpboot/images/.*" 1>/dev/null 2>&1 || /bin/true - fi -fi %clean |