summarylogtreecommitdiffstats
path: root/openvswitch.install
diff options
context:
space:
mode:
authorBrian Bidulock2015-06-10 10:39:54 -0600
committerBrian Bidulock2015-06-10 10:39:54 -0600
commit14cff49354f6b2c051338ec213adc46c1a608d5a (patch)
treea6b4bdb165d96847473d7a927bc306c43f3b0961 /openvswitch.install
downloadaur-14cff49354f6b2c051338ec213adc46c1a608d5a.tar.gz
initial version
Diffstat (limited to 'openvswitch.install')
-rw-r--r--openvswitch.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/openvswitch.install b/openvswitch.install
new file mode 100644
index 000000000000..b9ee27005de6
--- /dev/null
+++ b/openvswitch.install
@@ -0,0 +1,14 @@
+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
+ systemd-tmpfiles --create openvswitch.conf
+}
+
+post_upgrade() {
+ post_install
+}