initial commit of file from CVS for smeserver-loginscript on Sat Sep 7 20:34:19 AEST 2024
This commit is contained in:
33
createlinks
Normal file
33
createlinks
Normal 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");
|
||||
|
Reference in New Issue
Block a user