default config
This commit is contained in:
parent
43c864654f
commit
efa77d9032
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue