Project

General

Profile

Bug #2310 ยป rudder-webapp-fix-apache_group_htpasswd.patch

Olivier LI KIANG CHEONG, 2012-02-21 11:16

View differences:

SPECS/rudder-webapp.spec 2012-02-03 17:35:20.331724978 +0100
%define rudderlogdir /var/log/rudder
%if 0%{?sles_version}
%define apache apache2
%define apache apache2
%define apache_group www
%define htpasswd_cmd htpasswd2
%endif
%if 0%{?el6}
%define apache httpd
%define apache httpd
%define apache_group apache
%define htpasswd_cmd htpasswd
%endif
#=================================================
......
cp -a /opt/rudder/share/policy-templates /var/rudder/configuration-repository/
fi
chown root:www %{ruddervardir}/inventories/incoming
chown root:%{apache_group} %{ruddervardir}/inventories/incoming
chmod 2770 %{ruddervardir}/inventories/incoming
chmod 755 -R %{rudderdir}/share/tools
chmod 655 -R %{rudderdir}/share/load-page
htpasswd2 -bc %{rudderdir}/etc/htpasswd-webdav rudder rudder
%{htpasswd_cmd} -bc %{rudderdir}/etc/htpasswd-webdav rudder rudder
/etc/init.d/%{apache} start
# Migrate from 2.3.0 format policy-template store: /var/rudder/policy-templates
    (1-1/1)