diff --git a/SPECS/openlitespeed.spec b/SPECS/openlitespeed.spec index 51eac19..8857d95 100644 --- a/SPECS/openlitespeed.spec +++ b/SPECS/openlitespeed.spec @@ -90,8 +90,8 @@ rm -f %{buildroot}%{_lsws_dir}/admin/conf/admin_config.conf cp -pr dist/admin/conf/admin_config_ssl.conf.in %{buildroot}%{_lsws_dir}/admin/conf/admin_config.conf sed -i -e "s:%ADMIN_PORT%:7080:g" %{buildroot}%{_lsws_dir}/admin/conf/admin_config.conf sed -i -e "s:%SSL_HOSTNAME%:webadmin:g" %{buildroot}%{_lsws_dir}/admin/conf/admin_config.conf -install -m 755 -d %{buildroot}/%{_sysconfdir}/systemd/system -cp %{buildroot}%{_lsws_dir}/admin/misc/lshttpd.service %{buildroot}%{_sysconfdir}/systemd/system +install -m 755 -d %{buildroot}%{_unitdir} +cp %{buildroot}%{_lsws_dir}/admin/misc/lshttpd.service %{buildroot}%{_unitdir} chmod u+w %{buildroot}%{_lsws_dir}/admin/misc/lsws.rc sed "s:%LSWS_CTRL%:/usr/lsws/bin/lswsctrl:" dist/admin/misc/lsws.rc.in > %{buildroot}%{_lsws_dir}/admin/misc/lsws.rc sed -i -e 's:fcgi-bin/lsphp:$SERVER_ROOT/lsphp73/bin/lsphp:g' %{buildroot}%{_lsws_dir}/conf/httpd_config.conf @@ -238,7 +238,7 @@ echo "To start the openlitespeed server, run the command: systemctl start lsws" %files -/etc/systemd/system/lshttpd.service +%{_unitdir}/lshttpd.service %doc README.md %dir %{_lsws_dir} %{_lsws_dir}/* @@ -257,6 +257,6 @@ echo "To start the openlitespeed server, run the command: systemctl start lsws" %{_lsws_dir}/modules/mod_lua.so %changelog -* Wed Sep 18 2024 Eduard Basov - 1.8.2 +* Wed Sep 18 2024 Eduard Basov - 1.8.2-1 - Rebuild for MSVSphere 9.4