Scripts de session
This commit is contained in:
parent
3526142cc8
commit
a09210157b
@ -6,6 +6,7 @@ event_link("wpkg-init", "wpkg-update", "20");
|
||||
event_link("wpkg-init", "ipasserelle-update", "20");
|
||||
event_link("initialize-default-databases", "wpkg-update", "02");
|
||||
|
||||
templates2events("/home/e-smith/files/shares/tools/files/scripts/session.bat", qw(wpkg-update bootstrap-console-save));
|
||||
templates2events("/home/e-smith/files/shares/tools/files/scripts/wpkg/conf.bat", qw(wpkg-update bootstrap-console-save));
|
||||
templates2events("/home/e-smith/files/shares/tools/files/scripts/session/conf.bat", qw(wpkg-update bootstrap-console-save));
|
||||
templates2events("/home/e-smith/files/shares/wpkg/files/config.xml", qw(wpkg-update bootstrap-console-save));
|
||||
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
|
||||
my $ip = $InternalInterface{'IPAddress'};
|
||||
$OUT .=<<"EOF";
|
||||
SET IPASSERELLE_IP=$ip
|
||||
for /F "tokens=*" %%f in ('dir /B /ON \\\\%IPASSERELLE_IP%\\tools\scripts\session\*.bat') do call %%f
|
||||
|
||||
EOF
|
||||
|
||||
# Unix2dos
|
||||
$OUT =~ s/\n/\r\n/g;
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
set DOC=Mes Documents
|
||||
if exist \\%IPASSERELLE_IP%\tools\signatures\%USERNAME% (
|
||||
if exist %USERPROFILE%\Documents (
|
||||
set DOC=Documents
|
||||
)
|
||||
xcopy /E /I /Y \\%IPASSERELLE_IP%\tools\signatures\%USERNAME% "%USERPROFILE%\%DOC%\signature"
|
||||
)
|
Loading…
Reference in New Issue
Block a user