This commit is contained in:
Alexey Berezhok
2026-07-11 00:24:18 +03:00
parent 8c690284e9
commit 23e5cbbc95
3 changed files with 55 additions and 6 deletions

View File

@@ -35,6 +35,13 @@ if [ "$1" == "1" ]; then
/usr/local/mgr5/sbin/mgrctl -m ispmgr exit
fi
%preun
if [ "$1" == "0" ]; then
rm -f /usr/share/nginx/modules/ngx_http_apache_rewrite_module.conf
rm -f /usr/lib64/nginx/modules/ngx_http_apache_rewrite_module.so
systemctl restart nginx
fi
%files
/usr/local/mgr5/etc/xml/ispmgr_mod_nginx_mod_rewrite_plugin.xml
/usr/local/mgr5/etc/plugins/ispmgr/nginx_mod_rewrite_plugin.xml