mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
While the alias is available after enabling the unit, we don't actually do that in our testing environment (adding a symlink manually would work too, then again, why not just use the proper name?).
14 lines
649 B
Plaintext
14 lines
649 B
Plaintext
moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
|
|
sun::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
|
|
moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
|
|
sun::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
|
|
moon::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
|
|
sun::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
|
|
moon::iptables-restore < /etc/iptables.rules
|
|
sun::iptables-restore < /etc/iptables.rules
|
|
sun::systemctl start strongswan
|
|
sun::expect-connection net-net
|
|
moon::systemctl start strongswan
|
|
moon::sleep 4
|
|
|