Fix db upgrade console redirection to be posix compliant

This commit fixes the syntax used for console redirection when running
the subunit2sql-db-manage command to upgrade the db schema. The
previous syntax used was a bashism that doesn't work with the shell
puppet is using to run the exec.

Change-Id: I6f76765ba23892ab082847b3b7f070c98314ff6a
This commit is contained in:
Matthew Treinish 2015-03-17 14:32:10 -04:00
parent 58d13898b5
commit 0d033994c8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class subunit2sql::server (
}
exec { 'upgrade_subunit2sql_db':
command => 'subunit2sql-db-manage --config-file /etc/subunit2sql.conf upgrade head &> /var/log/subunit2sql_migration.log &',
command => 'subunit2sql-db-manage --config-file /etc/subunit2sql.conf upgrade head > /var/log/subunit2sql_migration.log 2>&1 &',
path => '/usr/local/bin:/usr/bin:/bin/',
subscribe => Exec['backup_subunit2sql_db'],
refreshonly => true,