1 |
diff -Nur --no-dereference smeserver-openvpn-s2s-0.2.old/createlinks smeserver-openvpn-s2s-0.2/createlinks |
2 |
--- smeserver-openvpn-s2s-0.2.old/createlinks 2022-11-29 15:22:13.693000000 -0500 |
3 |
+++ smeserver-openvpn-s2s-0.2/createlinks 2022-11-29 15:27:59.127000000 -0500 |
4 |
@@ -11,6 +11,8 @@ |
5 |
event_link("openvpn-s2s-genconf", "openvpn-s2s-update", "20"); |
6 |
event_link("openvpn-s2s-update-crl", "openvpn-s2s-update", "30"); |
7 |
event_link("openvpn-s2s-genconf", "bootstrap-console-save", "80"); |
8 |
+event_link("openvpn-s2s-jail", "bootstrap-console-save", "03"); |
9 |
+event_link("openvpn-s2s-jail", "openvpn-s2s-update", "03"); |
10 |
|
11 |
templates2events("/etc/rc.d/init.d/masq", qw/openvpn-s2s-update/); |
12 |
templates2events("/etc/crontab", qw/openvpn-s2s-update/); |
13 |
@@ -38,6 +40,7 @@ |
14 |
event_link("systemd-reload", $event, "50"); |
15 |
|
16 |
#action specific to this package |
17 |
+event_link("openvpn-s2s-jail", $event, "03"); |
18 |
event_link("openvpn-s2s-update", $event, "60"); |
19 |
#services we need to restart |
20 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/openvpn-s2s"); |
21 |
diff -Nur --no-dereference smeserver-openvpn-s2s-0.2.old/root/etc/e-smith/events/actions/openvpn-s2s-jail smeserver-openvpn-s2s-0.2/root/etc/e-smith/events/actions/openvpn-s2s-jail |
22 |
--- smeserver-openvpn-s2s-0.2.old/root/etc/e-smith/events/actions/openvpn-s2s-jail 1969-12-31 19:00:00.000000000 -0500 |
23 |
+++ smeserver-openvpn-s2s-0.2/root/etc/e-smith/events/actions/openvpn-s2s-jail 2022-11-29 15:24:11.012000000 -0500 |
24 |
@@ -0,0 +1,7 @@ |
25 |
+#!/bin/bash |
26 |
+ |
27 |
+#copy any files needed for the jail |
28 |
+ |
29 |
+#be sure we have the needed timezone |
30 |
+/bin/cp -L /etc/localtime /etc/openvpn/s2s/etc |
31 |
+ |