Mail archive
alpine-devel

[alpine-devel] [PATCH] /testing/openvswitch - remove start/stop services

From: Stuart Cardall <developer_at_it-offshore.co.uk>
Date: Wed, 12 Mar 2014 20:06:31 +0000

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
_at_@ -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"
_at_@ -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
_at_@ -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"
_at_@ -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_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Wed Mar 12 2014 - 20:06:31 GMT