suppression des templates pour les paramètres de wpkg

tags/0.1.0
Daniel Berteaud 13 years ago
parent 0cc924a6df
commit d57b2abb1f
  1. 4
      ipasserelle-gp.spec
  2. 52
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All
  3. 0
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/template-begin

@ -1,5 +1,5 @@
%define version 0.0.1 %define version 0.0.1
%define release 1.beta25 %define release 1.beta26
%define name ipasserelle-gp %define name ipasserelle-gp
@ -32,8 +32,6 @@ Basé sur WPKG et d'autres outils
%build %build
perl createlinks perl createlinks
%{__mkdir_p} root/home/e-smith/files/shares/wpkg/files/settings/{wpkg-gp,tightvnc,wpkg}
%{__mkdir_p} root/home/e-smith/files/shares/wpkg/files/{packages,softwares}
%install %install
/bin/rm -rf $RPM_BUILD_ROOT /bin/rm -rf $RPM_BUILD_ROOT

@ -1,52 +0,0 @@
{
my $ip = $InternalInterface{'IPAddress'};
my $nt = $smb{'Workgroup'};
my $pass = $wpkg{'UserPassword'};
my $out .=<<"EOF";
\@echo off
cls
echo.
echo # ######
echo. # # ## #### #### ###### ##### ###### # # ######
echo # # # # # # # # # # # # # #
echo. # ###### # # #### #### ##### # # ##### # # #####
echo # # ###### # # # ##### # # # #
echo. # # # # # # # # # # # # # # #
echo # # # # #### #### ###### # # ###### ###### ###### ######
echo.
echo.
echo.
echo.
echo.
echo. _________________________________________________________
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.
echo.
ping -n 2 -w 2000 $ip > NUL
if errorlevel 1 (
echo Reseau non connecte
exit /b %errorlevel%
)
net use \\\\$ip\\wpkg /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
cscript //Nologo \\\\$ip\\wpkg\\wpkg.js /synchronize /nonotify /quiet
EOF
$out =~ s/\n/\r\n/g;
$OUT = $out;
}
Loading…
Cancel
Save