initial commit of file from CVS for smeserver-loginscript on Sat Sep 7 20:34:19 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:34:20 +10:00
parent d6d65f9ac8
commit da7439100c
19 changed files with 1119 additions and 2 deletions

33
createlinks Normal file
View File

@@ -0,0 +1,33 @@
#!/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 $panel = "manager";
panel_link("loginscript", $panel);
foreach (qw(samba/smb.conf))
{
templates2events("/etc/$_", qw(
conf-logondrive
));
}
#--------------------------------------------------
# actions for conf-logondrive event:
#--------------------------------------------------
$event = "conf-logondrive";
safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/smbd");
#event_link("conf-samba", $event, "25");
#event_link("reload-samba", $event, "50");
event_link("conf-loginscript", $event, "75");
$event="smeserver-loginscript-update";
safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/smbd");
templates2events("/etc/smb.conf",$event);
event_link("conf-loginscript", $event, "75");