]> git.ipfire.org Git - thirdparty/strongswan.git/blame - testing/tests/sql/net2net-cert/pretest.dat
testing: Use renamed systemd unit
[thirdparty/strongswan.git] / testing / tests / sql / net2net-cert / pretest.dat
CommitLineData
10051b01
TB
1moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
2sun::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
3moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
4sun::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
323f0b05
AS
5moon::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
6sun::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
136f7416
AS
7moon::iptables-restore < /etc/iptables.rules
8sun::iptables-restore < /etc/iptables.rules
35392aa8
TB
9moon::systemctl start strongswan
10sun::systemctl start strongswan
323f0b05 11moon::expect-connection net-net
9db53049
AS
12sun::expect-connection net-net
13moon::swanctl --initiate --child net-net 2> /dev/null