Skip to content

Commit

Permalink
fedora-spec: remove unneeded db initialization
Browse files Browse the repository at this point in the history
The DB initialization is done by ovs-ctl script as well,
so remove the duplicated code from the spec.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
fleitner authored and blp committed Nov 6, 2014
1 parent 0447019 commit 3cf905f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions rhel/openvswitch-fedora.spec.in
Expand Up @@ -170,19 +170,6 @@ rm -rf $RPM_BUILD_ROOT


%post
if test ! -e /etc/openvswitch/conf.db; then
install -d -m 755 -o root -g root /etc/openvswitch

# Create ovs-vswitchd config database
ovsdb-tool -vANY:console:emer create /etc/openvswitch/conf.db \
/usr/share/openvswitch/vswitch.ovsschema

# Create initial table in config database
ovsdb-tool -vANY:console:emer transact /etc/openvswitch/conf.db \
'[{"op": "insert", "table": "Open_vSwitch", "row": {}}]' \
> /dev/null
fi

%if 0%{?systemd_post:1}
%systemd_post %{name}.service
%else
Expand Down

0 comments on commit 3cf905f

Please sign in to comment.