summaryrefslogtreecommitdiff
path: root/community/openvswitch/openvswitch.install
blob: a64353d02db1d8841320704585ac94345961b742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}