mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-18 07:46:45 +00:00
[ubuntu] Add Apache and Nginx (#2516)
* [ubuntu] Add apache and nginx (#2501) * Use dpkg-query to get nginx version * Fix flaky apache cli test
This commit is contained in:
14
images/linux/scripts/installers/nginx.sh
Normal file
14
images/linux/scripts/installers/nginx.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: nginx.sh
|
||||
## Desc: Installs Nginx
|
||||
################################################################################
|
||||
|
||||
# Install Nginx
|
||||
apt-get install nginx -y
|
||||
|
||||
# Disable nginx.service
|
||||
systemctl is-active --quiet nginx.service && systemctl stop nginx.service
|
||||
systemctl disable nginx.service
|
||||
|
||||
invoke_tests "WebServers" "Nginx"
|
||||
Reference in New Issue
Block a user