Skip to content

Commit

Permalink
Fixes #8232: Apache config does not get cleaned up after removal of r…
Browse files Browse the repository at this point in the history
…udder-webapp
  • Loading branch information
jooooooon committed May 18, 2016
1 parent 4c2b4d7 commit e0c4bfd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rudder-webapp/SPECS/rudder-webapp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,18 @@ if [ $1 -eq 0 ]; then
groupdel %{config_repository_group}
echo " Done"
fi

%if 0%{?sles_version}
# Remove required includes in the SLES apache2 configuration
if grep -qE "^. /etc/sysconfig/rudder-apache$" /etc/sysconfig/apache2; then
sed -i "/# This sources the modules\/defines needed by Rudder/d" /etc/sysconfig/apache2
sed -i "/. \/etc\/sysconfig\/rudder-apache/d" /etc/sysconfig/apache2

# Also remove an older comment that was erroneously added until 2.11.21
sed -i "/# This sources the configuration file needed by Rudder/d" /etc/sysconfig/apache2
fi
%endif

fi

#=================================================
Expand Down

0 comments on commit e0c4bfd

Please sign in to comment.