706cb3205429bb0816c1ba9b37eb84cc25a693b9
[strongswan.git] / testing / tests / sql / ip-split-pools-db-restart / pretest.dat
1 moon::rm /etc/ipsec.d/cacerts/*
2 carol::rm /etc/ipsec.d/cacerts/*
3 dave::rm /etc/ipsec.d/cacerts/*
4 moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
5 carol::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
6 dave::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
7 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
8 carol::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
9 dave::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
10 moon::ipsec pool --status 2> /dev/null
11 moon::ipsec pool --leases 2> /dev/null
12 moon::ipsec start
13 dave::ipsec start
14 carol::ipsec start
15 dave::expect-connection home
16 dave::ipsec up home
17 carol::expect-connection home
18 carol::ipsec up home