1 |
brianr |
1.1 |
diff -urN smeserver-softethervpn-server-4.34.old/createlinks smeserver-softethervpn-server-4.34/createlinks |
2 |
|
|
--- smeserver-softethervpn-server-4.34.old/createlinks 2020-03-28 20:13:01.000000000 +0000 |
3 |
|
|
+++ smeserver-softethervpn-server-4.34/createlinks 2021-01-19 12:05:07.811395721 +0000 |
4 |
|
|
@@ -2,18 +2,28 @@ |
5 |
|
|
|
6 |
|
|
use esmith::Build::CreateLinks qw(:all); |
7 |
|
|
|
8 |
|
|
-# Start and stop links |
9 |
|
|
+# Start and stop links - SME9 |
10 |
|
|
+#service_link_enhanced("vpnserver", "S87", "7"); |
11 |
|
|
|
12 |
|
|
-service_link_enhanced("vpnserver", "S87", "7"); |
13 |
|
|
- |
14 |
|
|
-#todo a configuration event |
15 |
|
|
-$event="softether"; |
16 |
|
|
-#event_link("action", $event , "20") |
17 |
|
|
- |
18 |
|
|
-templates2events("/etc/raddb/users", $event); |
19 |
|
|
-templates2events("/etc/httpd/conf/httpd.conf", $event); |
20 |
|
|
- |
21 |
|
|
-safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/vpnserver"); |
22 |
|
|
+#Add an update event - auto executed by yum on install etc. |
23 |
|
|
+$event="smeserver-softethervpn-server--update"; |
24 |
|
|
+foreach my $file (qw( |
25 |
|
|
+ /etc/systemd/system-preset/49-koozali.preset |
26 |
|
|
+ /etc/raddb/users |
27 |
|
|
+ /etc/httpd/conf/httpd.conf |
28 |
|
|
+)) |
29 |
|
|
+{ |
30 |
|
|
+ templates2events( $file, $event ); |
31 |
|
|
+} |
32 |
|
|
+ |
33 |
|
|
+#action needed in case we have a systemd unit |
34 |
|
|
+event_link("systemd-default", $event, "10"); |
35 |
|
|
+event_link("systemd-reload", $event, "50"); |
36 |
|
|
+#action specific to this package |
37 |
|
|
+event_link("remoteaccess-update",$event, "30"); |
38 |
|
|
+#services we need to restart |
39 |
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
40 |
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/radiusd"); |
41 |
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/bridge"); |
42 |
|
|
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/vpnserver"); |
43 |
|
|
+ |