Remove outdated file from web template.
[discourse_docker.git] / templates / web.template.yml
index c4036b95a0c0d3072abb84a8c340860be1cc4376..8bfe6daa9fe59aa78260606a9d5d95822168938e 100644 (file)
@@ -62,18 +62,7 @@ run:
 
         # find DISCOURSE_ env vars, strip the leader, lowercase the key
         /usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = #{v}" if k =~ /^DISCOURSE_(.*)/}' > $conf
-  - file:
-     path: /etc/runit/1.d/00-fix-log-permissions
-     chmod: "+x"
-     contents: |
-       #!/bin/bash
-       mkdir -p /var/log/nginx
-       chown -R www-data:www-data /var/log/nginx
-       chown www-data:www-data /var/log/nginx
-       chown -f syslog:adm /var/log/syslog*
-       chown -f syslog:adm /var/log/auth.log*
-       chown -f syslog:adm /var/log/kern.log*
-
+        
   - file:
      path: /etc/runit/1.d/enable-brotli
      chmod: "+x"
@@ -91,7 +80,7 @@ run:
         # postgres
         cd $home
         chown -R discourse:www-data /shared/log/rails
-        LD_PRELOAD=/usr/lib/libjemalloc.so.1 HOME=/home/discourse USER=discourse exec chpst -u discourse:www-data -U discourse:www-data bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb
+        LD_PRELOAD=$RUBY_ALLOCATOR HOME=/home/discourse USER=discourse exec chpst -u discourse:www-data -U discourse:www-data bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb
 
   - file:
      path: /etc/service/nginx/run