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 #6911: Remove migration process from old version to 3.1 #698

Conversation

VinceMacBuche
Copy link
Member

if ! perl -p0e 's/\n//g' < /opt/rudder/etc/logback.xml | perl -p0e 's/<!--.(?:(?!-->).)*-->//g' | perl -p0e 's/> *</></g' | grep -E '<logger name="changeRequest" level="[^"]+" additivity="false">' >/dev/null 2>&1
then
sed -i 's%^ *</configuration>% <logger name="changeRequest" level="info" additivity="false">\n <appender-ref ref="OPSLOG" />\n <appender-ref ref="STDOUT" />\n </logger>\n</configuration>%' /opt/rudder/etc/logback.xml
fi
}
Copy link
Member

Choose a reason for hiding this comment

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

This would create an empty function which is not good. Either use ':' in place of empty content or remove the function completly

Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer keeping the function so we remember there can me some steps of migrating logback.xml

@VinceMacBuche
Copy link
Member Author

PR updated

@VinceMacBuche VinceMacBuche force-pushed the ust_6911/remove_migration_process_from_old_version_to_3_1 branch from 6b6df68 to be8bb2f Compare July 1, 2015 09:15
@VinceMacBuche
Copy link
Member Author

PR updated

@VinceMacBuche VinceMacBuche force-pushed the ust_6911/remove_migration_process_from_old_version_to_3_1 branch from be8bb2f to 9c48249 Compare July 1, 2015 10:01
@Kegeruneku
Copy link

OK !

Kegeruneku pushed a commit that referenced this pull request Jul 1, 2015
…process_from_old_version_to_3_1

Fixes #6911: Remove migration process from old version to 3.1
@Kegeruneku Kegeruneku merged commit fff529b into Normation:branches/rudder/3.1 Jul 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants