Skip to content

Conversation

@bskjois
Copy link
Contributor

@bskjois bskjois commented Apr 10, 2018

…2.4 version and Apache does not encourage to use /tmp to access files using http from RHEL7 onwards. Hence the tests are failing to access the /tmp dir used to access the files in our tests.

Changes:

  • Updated the new config to httpd.conf, which is changed apache2.4 version.
  • Modified the path used in tests from $TCTMP (/tmp) to "/usr/local/autotest_base/autotest-client-tests/linux-tools/httpd_tools/tmp"

…2.4 version and Apache does not encourage to use /tmp to access files using http from RHEL7 onwards.
# Restore status of httpd service
if [ $httpd_cleanup -eq 0 ]; then
service httpd stop >$stdout 2>$stderr
systemctl stop httpd >$stdout 2>$stderr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tc_service macros cant be used here ?

sed -i 's/AuthBasicProvider file/AuthBasicProvider dbm/g' $HTTPD_CONF
sed -i 's:AuthUserFile $TCTMP/test/passwd_file:AuthDBMUserFile $TCTMP/test/passwd_file:g' $HTTPD_CONF
sed -i 's:AuthUserFile:AuthDBMUserFile:g' $HTTPD_CONF

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain why this change is required here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants