initial commit of file from CVS for e-smith-proxy on Wed 12 Jul 09:06:18 BST 2023

This commit is contained in:
Brian Read
2023-07-12 09:06:18 +01:00
parent 1041715762
commit a376640216
68 changed files with 1794 additions and 2 deletions

60
createlinks Normal file
View File

@@ -0,0 +1,60 @@
#! /usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
my $event;
foreach $event (qw(
console-save
bootstrap-console-save
network-create
network-delete
proxy-update
e-smith-proxy-update
))
{
templates2events("/etc/httpd/conf/proxy/proxy.pac", $event);
templates2events("/etc/squid/squid.conf", $event);
}
foreach $event (qw(
network-create
network-delete
console-save
proxy-update
e-smith-proxy-update
))
{
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/squid");
}
foreach $event (qw(
proxy-update
e-smith-proxy-update
))
{
templates2events("/etc/rc.d/init.d/masq", "$event");
templates2events("/etc/crontab", "$event");
templates2events("/etc/dhcpd.conf", "$event");
safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/masq");
}
# Symlink for the cgi.
panel_link("proxy", "manager");
#--------------------------------------------------
# specific actions for e-smith-proxy-update event
#--------------------------------------------------
$event = "e-smith-proxy-update";
templates2events("/etc/systemd/system-preset/49-koozali.preset", $event);
templates2events("/usr/lib/systemd/system/squid.service.d/50koozali.conf", $event);
event_link("systemd-reload", $event, "89");
foreach $event (qw(
post-install
post-upgrade
))
{
templates2events("/usr/lib/systemd/system/squid.service.d/50koozali.conf", $event);
}