diff options
author | Brian Bidulock | 2015-06-10 10:39:54 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-06-10 10:39:54 -0600 |
commit | 14cff49354f6b2c051338ec213adc46c1a608d5a (patch) | |
tree | a6b4bdb165d96847473d7a927bc306c43f3b0961 /openvswitch.install | |
download | aur-14cff49354f6b2c051338ec213adc46c1a608d5a.tar.gz |
initial version
Diffstat (limited to 'openvswitch.install')
-rw-r--r-- | openvswitch.install | 14 |
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 +} |