diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-01-16 13:40:07 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-02-11 18:30:34 +0000 |
commit | 1d3e27fd2231a92d3cb95729bd7888a632aaa890 (patch) | |
tree | 6c9694db3edf0aede4e8c1be99837feb8940f280 /openstack/usr/share/openstack/openvswitch-setup | |
parent | 72d4e9f7dd07e22d0c81cd9de2d24cc1c2d351e9 (diff) | |
download | definitions-1d3e27fd2231a92d3cb95729bd7888a632aaa890.tar.gz |
FIXUPME: Add workaround to avoid failure on reboot of some setup services
Diffstat (limited to 'openstack/usr/share/openstack/openvswitch-setup')
-rw-r--r-- | openstack/usr/share/openstack/openvswitch-setup | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openstack/usr/share/openstack/openvswitch-setup b/openstack/usr/share/openstack/openvswitch-setup index a34c1a82..a5db7d21 100644 --- a/openstack/usr/share/openstack/openvswitch-setup +++ b/openstack/usr/share/openstack/openvswitch-setup @@ -15,7 +15,11 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -xe +set -e + +if [ -f /var/openstack/openvswitch-setup ]; then + exit 0 +fi # Create the openvswitch required folders mkdir -p /usr/local/etc/openvswitch @@ -33,4 +37,8 @@ openvswitch_logfile=/usr/local/var/run/openvswitch/ovsdb-server.log # Create openvswitch database ovsdb-tool create $openvswitch_database /usr/share/openvswitch/vswitch.ovsschema +install -D -m 644 /proc/self/fd/0 <<'EOF' /var/openstack/openvswitch-setup +Openvswitch setup: success +EOF + exit 0 |