From 0d033994c8c0926d0979e8b8917773afa807fab9 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 17 Mar 2015 14:32:10 -0400 Subject: [PATCH] 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 --- manifests/server.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server.pp b/manifests/server.pp index b7e380b..1bd334b 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -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,