Fixed location of counter.log file.
This commit is contained in:
parent
3ce76617ad
commit
5b4a8f70ae
3 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ module Ticket::Number::Date
|
||||||
date = t.strftime("%Y-%m-%d")
|
date = t.strftime("%Y-%m-%d")
|
||||||
|
|
||||||
# read counter
|
# read counter
|
||||||
file_name = config[:file] || '/tmp/counter.log'
|
file_name = Rails.root.to_s + '/' + config[:file]
|
||||||
contents = ""
|
contents = ""
|
||||||
begin
|
begin
|
||||||
file = File.open(file_name)
|
file = File.open(file_name)
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Ticket::Number::Increment
|
||||||
|
|
||||||
# read counter
|
# read counter
|
||||||
min_digs = config[:min_size] || 4;
|
min_digs = config[:min_size] || 4;
|
||||||
file_name = config[:file] || '/tmp/counter.log'
|
file_name = Rails.root.to_s + '/' + config[:file]
|
||||||
contents = ""
|
contents = ""
|
||||||
begin
|
begin
|
||||||
file = File.open( file_name )
|
file = File.open( file_name )
|
||||||
|
|
|
@ -759,7 +759,7 @@ Setting.create(
|
||||||
:state => {
|
:state => {
|
||||||
:value => {
|
:value => {
|
||||||
:checksum => false,
|
:checksum => false,
|
||||||
:file => '/tmp/counter.log',
|
:file => 'tmp/counter.log',
|
||||||
:min_size => 5,
|
:min_size => 5,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -793,7 +793,7 @@ Setting.create(
|
||||||
:state => {
|
:state => {
|
||||||
:value => {
|
:value => {
|
||||||
:checksum => false,
|
:checksum => false,
|
||||||
:file => '/tmp/counter.log',
|
:file => 'tmp/counter.log',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
:frontend => false
|
:frontend => false
|
||||||
|
|
Loading…
Reference in a new issue