mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Add more steps: install built module and restart the server
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
- name: Setup Dependencies
|
||||
run: |
|
||||
sudo apt-get update -y -qq
|
||||
sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev
|
||||
sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev apache2 apache2-bin apache2-data
|
||||
- uses: actions/checkout@v2
|
||||
- name: autogen.sh
|
||||
run: ./autogen.sh
|
||||
@@ -29,3 +29,16 @@ jobs:
|
||||
- uses: ammaraskar/gcc-problem-matcher@master
|
||||
- name: make
|
||||
run: make -j `nproc`
|
||||
- name: install module
|
||||
run: sudo make install
|
||||
- name: prepare config
|
||||
run: |
|
||||
sudo cp .github/security2.conf /etc/apache2/mods-enabled/
|
||||
sudo cp modsecurity.conf-recommended /etc/apache2/modsecurity.conf
|
||||
sudo cp unicode.mapping /etc/apache2/
|
||||
sudo mkdir -p /var/cache/modsecurity
|
||||
sudo chown -R www-data:www-data /var/cache/modsecurity
|
||||
- name: start apache with module
|
||||
run: |
|
||||
sudo systemctl restart apache2.service
|
||||
|
||||
|
Reference in New Issue
Block a user