diff options
author | Flavio Leitner <fbl@redhat.com> | 2014-11-06 16:45:51 -0200 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-11-06 14:11:16 -0800 |
commit | 3cf905f91e6b6226a8a9008e00dbce0732204351 (patch) | |
tree | 47d6a8c20b7e6473c98a9176f122394f40e4ce85 | |
parent | 0447019df7c6cec4cf94e1d4d56ed9ddbcd0402d (diff) | |
download | openvswitch-3cf905f91e6b6226a8a9008e00dbce0732204351.tar.gz |
fedora-spec: remove unneeded db initialization
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>
-rw-r--r-- | rhel/openvswitch-fedora.spec.in | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index f90762d3c..fb4b1b756 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -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 |