mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01: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
 | |
| 
 |