ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: setup-es.sh appears to be redundant
Date Sat, 29 Oct 2016 23:37:47 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 2fa94f4c3 -> fd14ab62c


setup-es.sh appears to be redundant

This fixes #134

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/fd14ab62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/fd14ab62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/fd14ab62

Branch: refs/heads/master
Commit: fd14ab62cc065b28a5b973b02ebd60065f1e9f0c
Parents: 2fa94f4
Author: Sebb <sebb@apache.org>
Authored: Sun Oct 30 00:37:39 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Sun Oct 30 00:37:39 2016 +0100

----------------------------------------------------------------------
 tools/setup-es.sh | 127 -------------------------------------------------
 1 file changed, 127 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/fd14ab62/tools/setup-es.sh
----------------------------------------------------------------------
diff --git a/tools/setup-es.sh b/tools/setup-es.sh
deleted file mode 100644
index 1c35963..0000000
--- a/tools/setup-es.sh
+++ /dev/null
@@ -1,127 +0,0 @@
-#!/bin/sh
-############################################################################
-# Licensed to the Apache Software Foundation (ASF) under one or more       #
-# contributor license agreements.  See the NOTICE file distributed with    #
-# this work for additional information regarding copyright ownership.      #
-# The ASF licenses this file to you under the Apache License, Version 2.0  #
-# (the "License"); you may not use this file except in compliance with     #
-# the License.  You may obtain a copy of the License at                    #
-#                                                                          #
-#     http://www.apache.org/licenses/LICENSE-2.0                           #
-#                                                                          #
-# Unless required by applicable law or agreed to in writing, software      #
-# distributed under the License is distributed on an "AS IS" BASIS,        #
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
-# See the License for the specific language governing permissions and      #
-# limitations under the License.                                           #
-############################################################################
-
-# Usage message
-if test -z "$1" -o -z "$2"; then
-    cat <<EOT
-############################################################################
-#    setup-es.sh: ElasticSearch setup script for Pony Mail                 #
-############################################################################
-#                                                                          #
-#usage:                                                                    #
-#    setup-es.sh [elastic-servername (i.e. localhost)] [elastic db name]   #
-#                                                                          #
-#examples:                                                                 #
-#    setup-es.sh localhost ponymail                                        #
-#    setup-es.sh es-backend.foo.com ponymail_01                            #
-############################################################################
-EOT
-    exit 1
-fi
-
-echo "Setting up ElasticSearch structure...\n"
-PSERVER=${1:-localhost}
-PDBNAME=${2:-ponymail}
-
-echo "Creating DB named $PDBNAME...\n"
-curl -XPUT "http://$PSERVER:9200/$PDBNAME"
-
-echo "\nCreating mappings for $PDBNAME..."
-curl -XPOST "http://$PSERVER:9200/$PDBNAME/mbox/_mappings" -d '{
-      "mbox" : {
-        "_size" : {
-          "enabled" : true,
-          "store" : true
-        },
-        "properties" : {
-          "@import_timestamp" : {
-            "type" : "date",
-            "format" : "yyyy/MM/dd HH:mm:ss||yyyy/MM/dd"
-          },
-          "@version" : {
-            "type" : "long"
-          },
-          "body" : {
-            "type" : "string"
-          },
-          "date" : {
-            "type" : "date",
-            "store" : true,
-            "format" : "yyyy/MM/dd HH:mm:ss"
-          },
-          "epoch" : {
-            "type" : "double"
-          },
-          "from" : {
-            "type" : "string"
-          },
-          "from_raw" : {
-            "type" : "string",
-            "index" : "not_analyzed"
-          },
-          "in-reply-to" : {
-            "type" : "string"
-          },
-          "list" : {
-            "type" : "string"
-          },
-          "list_raw" : {
-            "type" : "string",
-            "index" : "not_analyzed"
-          },
-          "message-id" : {
-            "type" : "string"
-          },
-          "mid" : {
-            "type" : "string"
-          },
-          "private" : {
-            "type" : "boolean"
-          },
-          "references" : {
-            "type" : "string"
-          },
-          "subject" : {
-            "type" : "string"
-          },
-          "to" : {
-            "type" : "string"
-          }
-        }
-      }
-    }'
-  
-echo "\nWriting ponymail.cfg..."
-
-cat <<EOT>> ponymail.cfg
-############################################################################
-# Pony Mail Configuration file                                             #
-
-# Main ES configuration
-[elasticsearch]
-hostname:               $PSERVER
-dbname:                 $PDBNAME
-port:                   9200
-
-# Imports and such for importing mod_mbox etc
-[import]
-mod_mbox:               http://foo.example.org/mod_mbox/
-############################################################################
-EOT
-
-echo "All done!\n"


Mime
View raw message