summaryrefslogtreecommitdiff
path: root/community/openvswitch/openvswitch.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/openvswitch/openvswitch.install')
-rw-r--r--community/openvswitch/openvswitch.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/openvswitch/openvswitch.install b/community/openvswitch/openvswitch.install
new file mode 100644
index 000000000..a64353d02
--- /dev/null
+++ b/community/openvswitch/openvswitch.install
@@ -0,0 +1,16 @@
+post_install() {
+
+ if [[ ! -f etc/openvswitch/conf.db ]]; then
+
+ cmd=(ovsdb-tool create
+ etc/openvswitch/conf.db
+ usr/share/openvswitch/vswitch.ovsschema)
+
+ printf "Running: %s\n" "${cmd[*]}"
+ "${cmd[@]}"
+ fi
+}
+
+post_upgrade() {
+ post_install
+}