This is an automated email from the ASF dual-hosted git repository.

sebb 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 c6b204a  Ensure subscription files exist
c6b204a is described below

commit c6b204a8b2f3dcf989dbc7fcf4e8b79c52675b83
Author: Sebb <[email protected]>
AuthorDate: Tue Aug 24 17:36:31 2021 +0100

    Ensure subscription files exist
---
 Rakefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Rakefile b/Rakefile
index bc7a469..3b9eccd 100644
--- a/Rakefile
+++ b/Rakefile
@@ -425,6 +425,16 @@ namespace :docker do
     # Create other needed directories
     mkdir_p? '/srv/cache'
     mkdir_p? '/srv/mail/secretary'
+    # The list-* files are pushed from the mailing list server to the live 
Whimsy
+    # ensure there are empty files here
+    mkdir_p? '/srv/subscriptions'
+    Dir.chdir '/srv/subscriptions' do
+      # start is done first by the server
+      %w{start allows counts denys digests flags mods sendsubscribertomods 
subs}.each do |suffix|
+        file = "list-#{suffix}"
+        FileUtils.touch file unless File.exist? file
+      end
+    end
     # there may be more
 
     # add support for CLI use

Reply via email to