lib/dblink/pg_bouncer_runner.rb in dblink-0.4.2 vs lib/dblink/pg_bouncer_runner.rb in dblink-0.4.3
- old
+ new
@@ -100,9 +100,10 @@
@runner_pid
end
def create_config
@tmp_folder = Dir.mktmpdir
+ FileUtils.chmod(0777, @tmp_folder)
pgb_config = render_template('config.ini.erb', {})
File.open(@tmp_folder + '/config.ini', 'w') {|f| f.write(pgb_config) }
@pgb_user = "share"
@pgb_password = SecureRandom.hex(10)
\ No newline at end of file