X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from relay.mailchannels.net (si-002-i151.relay.mailchannels.net [108.178.49.163]) by mail.alpinelinux.org (Postfix) with ESMTP id 12C8EDC0069 for ; Wed, 12 Mar 2014 20:06:59 +0000 (UTC) X-Sender-Id: thewebhostserver|x-authuser|developer%40it-offshore.co.uk Received: from apollo.thewebhostserver.com (ip-10-204-11-22.us-west-2.compute.internal [10.204.11.22]) by relay.mailchannels.net (Postfix) with ESMTPA id E607160ED9 for ; Wed, 12 Mar 2014 20:06:56 +0000 (UTC) X-Sender-Id: thewebhostserver|x-authuser|developer%40it-offshore.co.uk Received: from apollo.thewebhostserver.com ([UNAVAILABLE]. [10.248.1.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.0.19); Wed, 12 Mar 2014 20:06:57 GMT X-MC-Relay: Neutral X-MailChannels-SenderId: thewebhostserver%7Cx-authuser%7Cdeveloper%2540it-offshore.co.uk X-MailChannels-Auth-Id: thewebhostserver Received: from [81.4.121.188] (port=50111 helo=localhost.localdomain) by apollo.thewebhostserver.com with esmtpsa (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from ) id 1WNpQP-0020KJ-5f; Wed, 12 Mar 2014 20:06:49 +0000 From: Stuart Cardall To: alpine-devel@lists.alpinelinux.org Cc: Stuart Cardall Subject: [alpine-devel] [PATCH] /testing/openvswitch - remove start/stop services Date: Wed, 12 Mar 2014 20:06:31 +0000 Message-Id: <1394654791-19941-1-git-send-email-developer@it-offshore.co.uk> X-Mailer: git-send-email 1.8.5.4 X-AuthUser: developer@it-offshore.co.uk X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Correcting post install/upgrade scripts to remove lines to start / stop services. --- testing/openvswitch/openvswitch.post-install | 8 -------- testing/openvswitch/openvswitch.post-upgrade | 8 -------- 2 files changed, 16 deletions(-) diff --git a/testing/openvswitch/openvswitch.post-install b/testing/openvswitch/openvswitch.post-install index 6dc42a2..3dfef0d 100644 --- a/testing/openvswitch/openvswitch.post-install +++ b/testing/openvswitch/openvswitch.post-install @@ -2,14 +2,8 @@ NORMAL="\033[1;0m" STRONG="\033[1;1m" -RED="\033[1;31m" GREEN="\033[1;32m" -print_red() { - local prompt="${RED}${STRONG}$1 ${NORMAL}" - printf "${prompt} %s\n" -} - print_green() { local prompt="${GREEN}${STRONG}$1 ${NORMAL}" printf "${prompt} %s\n" @@ -17,10 +11,8 @@ print_green() { db="/etc/openvswitch/conf.db" if [ -e "$db" ]; then - print_red "\nStopping OVS Database\n"; rc-service ovsdb-server stop print_green "\nTrying schema migration for $db..." ovsdb-tool convert "$db" "/usr/share/openvswitch/vswitch.ovsschema" - print_green "\nStarting OVS Database\n"; rc-service ovsdb-server start else print_green "\nCreating new Open vSwitch database $db...\n" ovsdb-tool create "$db" "/usr/share/openvswitch/vswitch.ovsschema" diff --git a/testing/openvswitch/openvswitch.post-upgrade b/testing/openvswitch/openvswitch.post-upgrade index 6dc42a2..3dfef0d 100644 --- a/testing/openvswitch/openvswitch.post-upgrade +++ b/testing/openvswitch/openvswitch.post-upgrade @@ -2,14 +2,8 @@ NORMAL="\033[1;0m" STRONG="\033[1;1m" -RED="\033[1;31m" GREEN="\033[1;32m" -print_red() { - local prompt="${RED}${STRONG}$1 ${NORMAL}" - printf "${prompt} %s\n" -} - print_green() { local prompt="${GREEN}${STRONG}$1 ${NORMAL}" printf "${prompt} %s\n" @@ -17,10 +11,8 @@ print_green() { db="/etc/openvswitch/conf.db" if [ -e "$db" ]; then - print_red "\nStopping OVS Database\n"; rc-service ovsdb-server stop print_green "\nTrying schema migration for $db..." ovsdb-tool convert "$db" "/usr/share/openvswitch/vswitch.ovsschema" - print_green "\nStarting OVS Database\n"; rc-service ovsdb-server start else print_green "\nCreating new Open vSwitch database $db...\n" ovsdb-tool create "$db" "/usr/share/openvswitch/vswitch.ovsschema" -- 1.8.5.4 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---