39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
|
#!/usr/bin/perl -w
|
||
|
|
||
|
use esmith::Build::CreateLinks qw(:all);
|
||
|
|
||
|
# Start and stop links - SME9
|
||
|
#service_link_enhanced("vpnserver", "S87", "7");
|
||
|
|
||
|
#Add an update event - auto executed by yum on install etc.
|
||
|
$event="smeserver-softethervpn-server-update";
|
||
|
foreach my $file (qw(
|
||
|
/etc/systemd/system-preset/49-koozali.preset
|
||
|
/etc/raddb/mods-config/files/authorize
|
||
|
/etc/httpd/conf/httpd.conf
|
||
|
))
|
||
|
{
|
||
|
templates2events( $file, $event );
|
||
|
}
|
||
|
|
||
|
#action needed in case we have a systemd unit
|
||
|
event_link("systemd-default", $event, "10");
|
||
|
event_link("systemd-reload", $event, "50");
|
||
|
#action specific to this package
|
||
|
event_link("remoteaccess-update",$event, "30");
|
||
|
#services we need to restart
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/radiusd");
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/bridge");
|
||
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/vpnserver");
|
||
|
|
||
|
use esmith::Build::Backup qw(:all);
|
||
|
backup_includes($pkg, qw(
|
||
|
/usr/vpnserver/vpn_server.config
|
||
|
/usr/vpnserver/backup.vpn_server.config/
|
||
|
/usr/vpnserver/chain_certs/
|
||
|
/usr/vpnserver/packet_log/
|
||
|
/usr/vpnserver/security_log/
|
||
|
/usr/vpnserver/server_log/
|
||
|
));
|