diff options
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 +} |