whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: link up logs
Date Mon, 25 Nov 2019 00:50:07 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ba0062  link up logs
5ba0062 is described below

commit 5ba0062df072b959ab8c89313a2ac6fc4c7958bb
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Nov 24 19:49:26 2019 -0500

    link up logs
---
 Rakefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Rakefile b/Rakefile
index 2a9b3a9..466ed93 100644
--- a/Rakefile
+++ b/Rakefile
@@ -308,6 +308,21 @@ namespace :docker do
       end
     end
 
+    mkdir_p '/srv/whimsy/www' unless Dir.exist? '/srv/whimsy/www'
+    mkdir_p '/srv/whimsy/members' unless Dir.exist? '/srv/whimsy/members'
+
+    unless File.exist? '/srv/whimsy/www/members/log'
+      ln_s '/var/log/apache2', '/srv/whimsy/www/members/log'
+    end
+
+    begin
+      mode = File.stat('/var/log/apache2').mode
+      if mode & 7 != 5
+        chmod 0755, '/var/log/apache2'
+      end
+    rescue
+    end
+
     sh 'ruby -I lib -r whimsy/asf -e "ASF::LDAP.configure"'
     sh 'apache2ctl -DFOREGROUND'
   end


Mime
View raw message