default config

This commit is contained in:
Roland Gruber 2011-06-11 17:57:00 +00:00
parent 43c864654f
commit efa77d9032
1 changed files with 6 additions and 3 deletions

View File

@ -82,9 +82,12 @@ cp $RPM_BUILD_DIR/lam.apache.conf $RPM_BUILD_ROOT%{httpd_confdir}/
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%post %post
chown %{lam_uid}.%{lam_gid} -R $RPM_BUILD_ROOT/var/lib/%{lam_dir}/config if [ ! -f /var/lib/%{lam_dir}/config/config.cfg ]; then
chown %{lam_uid}.%{lam_gid} -R $RPM_BUILD_ROOT/var/lib/%{lam_dir}/tmp cp /var/lib/%{lam_dir}/config/config.cfg_sample /var/lib/%{lam_dir}/config/config.cfg
chown %{lam_uid}.%{lam_gid} -R $RPM_BUILD_ROOT/var/lib/%{lam_dir}/sess chmod 600 /var/lib/%{lam_dir}/config/config.cfg
fi
chown %{lam_uid}.%{lam_gid} -R /var/lib/%{lam_dir}
chmod 700 /var/lib/%{lam_dir}
%if %is_suse %if %is_suse
/etc/init.d/apache2 restart /etc/init.d/apache2 restart
%endif %endif