mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-28 18:01:21 +02:00
12 lines
302 B
Bash
12 lines
302 B
Bash
#!/bin/sh
|
|
|
|
db="/etc/openvswitch/conf.db"
|
|
if [ -e "$db" ]; then
|
|
echo "Trying schema migration for $db..."
|
|
ovsdb-tool convert "$db" "/usr/share/openvswitch/vswitch.ovsschema"
|
|
else
|
|
echo "Creating new Open vSwitch database $db..."
|
|
ovsdb-tool create "$db" "/usr/share/openvswitch/vswitch.ovsschema"
|
|
fi
|
|
|