Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #4016,#4010: Use the unified apache logging directory in RHEL #148

Merged
merged 1 commit into from
Oct 14, 2013
Merged

Fixes #4016,#4010: Use the unified apache logging directory in RHEL #148

merged 1 commit into from
Oct 14, 2013

Conversation

Kegeruneku
Copy link

Ticket: http://www.rudder-project.org/redmine/issues/4016

To be merged in master

if [ -d %{rudderlogdir}/httpd ]; then
echo -n "INFO: Old logging directory detected (%{rudderlogdir}/httpd), migrating to %{rudderlogdir}/apache2..."
mkdir -p %{rudderlogdir}/apache2/migrated
cp -a %{rudderlogdir}/httpd/* %{rudderlogdir}/apache2/migrated/
Copy link
Member

Choose a reason for hiding this comment

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

Be careful - copying the logs can take up a lot of extra disk space, and therefore may fail. How about we mv instead, then you can just "rmdir" the remaining directory (avoiding a rm -rf ...)?

@jooooooon
Copy link
Member

Please also add a migration script to modify the paths in the apache config file.

@Kegeruneku
Copy link
Author

PR updated.

Kegeruneku pushed a commit that referenced this pull request Oct 14, 2013
…fied_apache_logging_directory_in_rhel_packaging

Fixes #4016,#4010: Use the unified apache logging directory in RHEL
@Kegeruneku Kegeruneku merged commit 99d2586 into Normation:master Oct 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants