summaryrefslogtreecommitdiff
path: root/homebrew/tarantool/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/tarantool/.make.sh-auto')
-rw-r--r--homebrew/tarantool/.make.sh-auto6
1 files changed, 6 insertions, 0 deletions
diff --git a/homebrew/tarantool/.make.sh-auto b/homebrew/tarantool/.make.sh-auto
new file mode 100644
index 000000000..61fba1e82
--- /dev/null
+++ b/homebrew/tarantool/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+local_user = ENV["USER"]
+inreplace etc/"default/tarantool", /(username\s*=).*/, "\\1 '#{local_user}'"
+(var/"lib/tarantool").mkpath
+(var/"log/tarantool").mkpath
+(var/"run/tarantool").mkpath