Skip to content

Commit 37ebb67

Browse files
mcasperSMillerDev
andauthored
Update Formula/d/dolt.rb
Co-authored-by: Sean Molenaar <[email protected]>
1 parent 71c691d commit 37ebb67

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Formula/d/dolt.rb

+5-13
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,17 @@ def install
2727
end
2828
end
2929

30-
def logdir
31-
var/"log"
32-
end
33-
34-
def datadir
35-
var/"dolt"
36-
end
37-
3830
def post_install
39-
logdir.mkpath
40-
datadir.mkpath
31+
(var/"log").mkpath unless (var/"log").exist?
32+
(var/"dolt").mkpath
4133
end
4234

4335
service do
4436
run [opt_bin/"dolt", "sql-server"]
4537
keep_alive true
46-
log_path f.logdir/"dolt.log"
47-
error_log_path f.logdir/"dolt.error.log"
48-
working_dir f.datadir
38+
log_path var/"log/dolt.log"
39+
error_log_path var/"log/dolt.error.log"
40+
working_dir var/"dolt"
4941
end
5042

5143
test do

0 commit comments

Comments
 (0)