itamae-plugin-recipe-redmine 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63b19e4bd5ad23bdb28976bbe3e94bf37881dcb2
4
- data.tar.gz: 885b826c67c956a78b76dd96d900c5b18be3d4f3
3
+ metadata.gz: 2e47f7aa811c960bea9d8053afddd9f1b3107f90
4
+ data.tar.gz: 31bd0bd22c88482a9d3a86511d6ec66782681fa4
5
5
  SHA512:
6
- metadata.gz: 3bb287b2d5deabb824b4ef75cbe246160efa32a236d52628cd2e5dd1be4b885aa54aa5bcc059534c832f4ac978bffb77eb9a92e3052fec500f11d21204ef7035
7
- data.tar.gz: aa94ae11a8a671b65ed5897eef3f6c307405d4c96667aad897fe4b997ab52570ea901651f20248e7f476fd2c176988510eb9f13892c0269f90945f43e2ad0e52
6
+ metadata.gz: 59db5521f76a6024614a8a5fe13c58d421b5ad6a8f4012587d9bd812ed4442f01cb5620a83ea77c763994bf2d85744ae472d0ba40a0b03681057414c39c71cd5
7
+ data.tar.gz: 2d63527945e460067ae66bc076b3e13131e89716e360c297e7fb6653a241c651b780a676c486b8ff6496d055a30cceaca8b28f2f8fe13a2facbcf1355c674be2
@@ -2,7 +2,7 @@
2
2
 
3
3
  expect -c "
4
4
  set timeout 5
5
- spawn LANG=en.en_US createuser -P redmine
5
+ spawn sudo -u postgres LANG=en.en_US createuser -P redmine
6
6
 
7
7
  expect \"Enter password for new role\"
8
8
  send \"$1\n\"
@@ -78,8 +78,7 @@ template "/opt/redmine/redmine-#{version}/config/database.yml" do
78
78
  end
79
79
 
80
80
  execute 'createuser' do
81
- user 'postgres'
82
- command "#{::File.join(File.dirname(__FILE__), 'create_user.sh')} #{ENV['REDMINE_PASSWORD'] || 'redmine'}"
81
+ command "sh #{::File.join(File.dirname(__FILE__), 'create_user.sh')} #{ENV['REDMINE_PASSWORD'] || 'redmine'}"
83
82
  not_if "psql -c \"select * from pg_user where usename = 'redmine';\" | grep redmine"
84
83
  end
85
84
 
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Redmine
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
 
7
7
  REDMINE_VERSION = [
8
8
  REDMINE_VERSION_MAJOR = '3',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-redmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda