1 2 3 4 5 6 7 8 9 10 11 12 13
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 }