Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos.package
Commits
3aaf3d62
Commit
3aaf3d62
authored
Jul 29, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos-cygwin-bootstrip:
add -c for wget
parent
84c28da5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
windows/scripts/slapos-cygwin-bootstrip.sh
windows/scripts/slapos-cygwin-bootstrip.sh
+13
-17
No files found.
windows/scripts/slapos-cygwin-bootstrip.sh
View file @
3aaf3d62
...
@@ -99,25 +99,22 @@ else
...
@@ -99,25 +99,22 @@ else
fi
fi
for
_cmdname
in
ip useradd usermod groupadd brctl tunctl
;
do
for
_cmdname
in
ip useradd usermod groupadd brctl tunctl
;
do
[[
-x
/usr/bin/
${
_cmdname
}
]]
&&
continue
wget
-c
http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/
${
_cmdname
}
-O
/usr/bin/
${
_cmdname
}
||
wget http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/
${
_cmdname
}
-O
/usr/bin/
${
_cmdname
}
||
csih_error
"download
${
_cmdname
}
failed"
csih_error
"download
${
_cmdname
}
failed"
csih_inform
"download cygwin script
${
_cmdname
}
OK"
csih_inform
"download cygwin script
${
_cmdname
}
OK"
chmod
+x /usr/bin/
${
_cmdname
}
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
failed"
chmod
+x /usr/bin/
${
_cmdname
}
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
failed"
done
done
if
[[
!
-x
/usr/bin/ipwin.exe
]]
;
then
if
check_os_is_wow64
;
then
if
check_os_is_wow64
;
then
wget
-c
http://dashingsoft.com/products/slapos/ipwin_x64.exe
-O
/usr/bin/ipwin.exe
||
wget http://dashingsoft.com/products/slapos/ipwin_x64.exe
-O
/usr/bin/ipwin.exe
||
csih_error
"download ipwin_x64.exe failed"
csih_error
"download ipwin_x64.exe failed"
csih_inform
"download ipwin_x64.exe OK"
csih_inform
"download ipwin_x64.exe OK"
else
else
wget
-c
http://dashingsoft.com/products/slapos/ipwin_x86.exe
-O
/usr/bin/ipwin.exe
||
wget http://dashingsoft.com/products/slapos/ipwin_x86.exe
-O
/usr/bin/ipwin.exe
||
csih_error
"download ipwin_x86.exe failed"
csih_error
"download ipwin_x86.exe failed"
csih_inform
"download ipwin_x86.exe OK"
csih_inform
"download ipwin_x86.exe OK"
fi
chmod
+x /usr/bin/ipwin.exe
||
csih_error
"chmod /usr/bin/ipwin.exe failed"
fi
fi
chmod
+x /usr/bin/ipwin.exe
||
csih_error
"chmod /usr/bin/ipwin.exe failed"
csih_inform
"Patch cygwin packages for building slapos OK"
csih_inform
"Patch cygwin packages for building slapos OK"
echo
""
echo
""
...
@@ -182,8 +179,7 @@ csih_inform "start bin/buildout"
...
@@ -182,8 +179,7 @@ csih_inform "start bin/buildout"
(
cd
/opt/slapos
;
bin/buildout
-v
-N
)
||
csih_error
"bin/buildout failed"
(
cd
/opt/slapos
;
bin/buildout
-v
-N
)
||
csih_error
"bin/buildout failed"
_filename
=
~/slapos-core-format.patch
_filename
=
~/slapos-core-format.patch
[[
-f
${
_filename
}
]]
||
wget
-c
http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/patches/slapos-core-format.patch
-O
${
_filename
}
||
wget http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/patches/slapos-core-format.patch
-O
${
_filename
}
||
csih_error
"download
${
_filename
}
failed"
csih_error
"download
${
_filename
}
failed"
csih_inform
"download
${
_filename
}
OK"
csih_inform
"download
${
_filename
}
OK"
...
@@ -232,10 +228,10 @@ csih_error "get guid of interface ${slapos_ifname} failed"
...
@@ -232,10 +228,10 @@ csih_error "get guid of interface ${slapos_ifname} failed"
csih_error
"invalid interface guid
${
interface_guid
}
specified."
csih_error
"invalid interface guid
${
interface_guid
}
specified."
csih_inform
"the guid of interface
${
slapos_ifname
}
is
${
interface_guid
}
"
csih_inform
"the guid of interface
${
slapos_ifname
}
is
${
interface_guid
}
"
wget http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/slapos.cfg.example
-O
${
node_configure_file
}
||
wget
-c
http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/slapos.cfg.example
-O
${
node_configure_file
}
||
csih_error
"download
${
node_configure_file
}
failed"
csih_error
"download
${
node_configure_file
}
failed"
csih_inform
"download
${
node_configure_file
}
OK"
csih_inform
"download
${
node_configure_file
}
OK"
wget http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/slapos-client.cfg.example
-O
${
client_configure_file
}
||
wget
-c
http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/slapos-client.cfg.example
-O
${
client_configure_file
}
||
csih_error
"download
${
node_configure_file
}
failed"
csih_error
"download
${
node_configure_file
}
failed"
csih_inform
"download
${
node_configure_file
}
OK"
csih_inform
"download
${
node_configure_file
}
OK"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment