Fix wpkg.bat templates

tags/0.0.1
Daniel Berteaud 13 years ago
parent 16042ec8b4
commit ab999f08f1
  1. 12
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All

@ -1,26 +1,25 @@
{
my $ip = $InternalInterface{'IPAddress'};
my $nt = $smb{'Workgrpup'};
my $nt = $smb{'Workgroup'};
my $pass = $wpkg{'UserPassword'};
my $out .=<<"EOF";
@echo off
\@echo off
cls
echo.
echo. _________________________________________________________
echo i\ _______________________________________________________\
echo i\\ _______________________________________________________\\
echo. i i i
echo i i Mises a jour en cours. N'eteignez pas l'ordinateur i
echo. i i i
echo i i Il s'eteindra lui-meme a la fin des operations i
echo. i i i
echo \i________________________________________________________i
echo \\i________________________________________________________i
echo.
echo.
net use \\\\$ip\\wpkg /user:$nt\\deploiement $pass >NUL
net use \\\\$ip\\wpkglogs /user:$nt\deploiement $pass >NUL
net use \\\\$ip\\wpkglogs /user:$nt\\deploiement $pass >NUL
set SOFTWARE=\\\\$ip\\wpkg\\softwares
set SETTINGS=\\\\$ip\\wpkg\\settings
set WPKGLOGS=\\\\$ip\\wpkglogs
@ -32,3 +31,4 @@ $out =~ s/\n/\r\n/g;
$OUT = $out;
}

Loading…
Cancel
Save