diff options
Diffstat (limited to 'homebrew/nginx/.make.sh-auto')
-rw-r--r-- | homebrew/nginx/.make.sh-auto | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/homebrew/nginx/.make.sh-auto b/homebrew/nginx/.make.sh-auto new file mode 100644 index 000000000..c64ee8e16 --- /dev/null +++ b/homebrew/nginx/.make.sh-auto @@ -0,0 +1,16 @@ +pkg:setup +(etc/"nginx/servers").mkpath +(var/"run/nginx").mkpath +html = prefix/"html" +dst = var/"www" +if dst.exist? +html.rmtree +dst.mkpath +else +dst.dirname.mkpath +html.rename(dst) +end +prefix.install_symlink dst => "html" +if rack.subdirs.any? { |d| d.join("sbin").directory? } +sbin.install_symlink bin/"nginx" +end |