Commit cdb642c7 authored by Jondy Zhao's avatar Jondy Zhao

slapos-windows-installer: instance use bootloader.sh to install test node

parent 4247b258
......@@ -11,11 +11,15 @@ recipe = slapos.recipe.cmmi
# This url is useless
path = $${buildout:directory}
pre-configure =
echo -e "#! /bin/bash\nmsiexec.exe /i `cygpath -w ${installer:location}/slapos-windows-all-in-one.exe` TARGETDIR=`cygpath -w $${buildout:directory}` /log `cygpath -w $${buildout:directory}/slapos-windows-installer.log` /quiet" > $${buildout:directory}/boot-installer
chmod +x $${buildout:directory}/boot-installer
configure-command = $${buildout:directory}/boot-installer
echo "#! /bin/bash" > $${:configure-command}
echo "declare -r installer=${installer:location}/slapos-windows-all-in-one.exe" >> $${:configure-command}
echo "declare -r targetdir=\$(cygpath -w $${buildout:directory})" >> $${:configure-command}
echo "declare -r logfile=\$(cygpath -w $${buildout:directory}/slapos-windows-installer.log" >> $${:configure-command}
echo "\$installer /DIR=\"\$targetdir\" /LOG=\"\$logfile\" /VERYSILENT" >> $${:configure-command}
chmod +x $${:configure-command}
configure-command = $${buildout:directory}/bootloader.sh
pre-install =
cp ${installer:cygroot}/slapos-windows-wrapper.bat $${buildout:directory}/
cp ${installer:cygroot}/slapos-windows-wrapper.bat $${buildout:directory}/slapos-windows-wrapper.bat
cp ${installer:cygroot}/test-computer.key $${buildout:directory}/cygwin/computer.key
cp ${installer:cygroot}/test-/computer.crt $${buildout:directory}/cygwin/computer.crt
cp ${installer:cygroot}/.slapos/key $${buildout:directory}/cygwin/key
......
......@@ -3,9 +3,6 @@ ignore-existing = true
extends =
../../stack/slapos.cfg
allow-hosts +=
dashingsoft.com
parts =
installer
instance-template
......@@ -19,7 +16,7 @@ download-only = true
[slapos-build-installer]
recipe = hexagonit.recipe.download
url = http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/slapos-build-installer
md5sum = 27ab50a3f76dfc8927247055495c48b8
md5sum = 4483d6df926c324d5905fef8f1175e43
download-only = true
[slapos-windows-wrapper]
......@@ -63,6 +60,7 @@ post-install= ${:cygroot}/slapos-windows-wrapper.bat slapos-build-installer
[instance-template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
md5sum = b0ed1bee8d8505fbbf5ef9d6ed5a1ba9
output = ${buildout:directory}/instance.cfg
mode = 0644
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment