-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and enable apache test on SLES and CentOS 7 (#1166)
- Loading branch information
1 parent
17f28d9
commit 674de2b
Showing
4 changed files
with
63 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
integration_test/third_party_apps_data/applications/apache/exercise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
set -e | ||
|
||
DOCUMENT_ROOT=/var/www/html | ||
|
||
source /etc/os-release | ||
if [[ "${ID}" == sles || "${ID}" == opensuse-leap ]]; then | ||
DOCUMENT_ROOT=/srv/www/htdocs | ||
fi | ||
|
||
# Create a file that apache can't read. | ||
touch /var/www/html/forbidden.html | ||
chmod o-r /var/www/html/forbidden.html | ||
touch "${DOCUMENT_ROOT}"/forbidden.html | ||
chmod o-r "${DOCUMENT_ROOT}"/forbidden.html | ||
|
||
# Then request that file through apache. This is meant to generate an entry in | ||
# the access log and the error log. | ||
curl http://localhost:80/forbidden.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters