initial commit of file from CVS for smeserver-sarg on Sat Sep 7 21:03:26 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:03:26 +10:00
parent 2a1dfb967c
commit ab07cfea54
28 changed files with 2023 additions and 2 deletions

32
createlinks Normal file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/perl -w
# This script creates the symlinks needed by this RPM
# Specific support exists to create symlinks within e-smith web "panels"
# and for links from named "events" directories into the "actions" directory
use esmith::Build::CreateLinks qw(:all);
my $event;
panel_link("sarg", 'manager');
for my $event (qw(
bootstrap-console-save
sarg-update
))
{
templates2events("/etc/sarg/sarg.conf", $event);
templates2events("/etc/cron.daily/sarg", $event);
templates2events("/etc/cron.weekly/sarg", $event);
templates2events("/etc/cron.monthly/sarg", $event);
}
for my $event (qw(
sarg-update
))
{
templates2events("/etc/httpd/conf/httpd.conf", $event);
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
}
#safe_symlink("/etc/sarg/fonts/","root/usr/share/sarg/");
#safe_symlink("/etc/sarg/languages/","root/usr/share/sarg/");
#safe_symlink("/etc/sarg/images/","root/usr/share/sarg/");