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:
parent
58d13898b5
commit
0d033994c8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user