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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.package
Commits
41aace0a
Commit
41aace0a
authored
Sep 09, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix slapos-cygwin-bootstrap.sh typos
parent
053ae87d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
windows/scripts/slapos-cygwin-bootstrap.sh
windows/scripts/slapos-cygwin-bootstrap.sh
+7
-6
No files found.
windows/scripts/slapos-cygwin-bootstrap.sh
View file @
41aace0a
...
@@ -112,7 +112,7 @@ function slapos_patch_cygwin()
...
@@ -112,7 +112,7 @@ function slapos_patch_cygwin()
unix2dos
${
_filename
}
&&
echo
OK.
unix2dos
${
_filename
}
&&
echo
OK.
fi
fi
_filename
=
"~/.minttyrc"
_filename
=
~/.minttyrc
echo
Checking
${
_filename
}
...
echo
Checking
${
_filename
}
...
if
[[
!
-f
${
_filename
}
]]
;
then
if
[[
!
-f
${
_filename
}
]]
;
then
cat
<<
EOF
>
${
_filename
}
cat
<<
EOF
>
${
_filename
}
...
@@ -178,7 +178,7 @@ readonly -f slapos_patch_cygwin
...
@@ -178,7 +178,7 @@ readonly -f slapos_patch_cygwin
function
install_slapos_cygwin_package
()
function
install_slapos_cygwin_package
()
{
{
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
[[
-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
-c
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"
...
@@ -186,15 +186,15 @@ function install_slapos_cygwin_package()
...
@@ -186,15 +186,15 @@ function install_slapos_cygwin_package()
done
done
for
_cmdname
in
regpwd
;
do
for
_cmdname
in
regpwd
;
do
[[
-x
/usr/bin
${
_cmdname
}
]]
&&
continue
[[
-x
/usr/bin
/
${
_cmdname
}
]]
&&
continue
wget
-c
http://dashingsoft.com/products/slapos/
${
_cmdname
}
.exe
-O
/usr/bin/
${
_cmdname
}
.exe
||
wget
-c
http://dashingsoft.com/products/slapos/
${
_cmdname
}
.exe
-O
/usr/bin/
${
_cmdname
}
.exe
||
csih_error
"download
${
_filename
}
failed"
csih_error
"download
${
_filename
}
failed"
csih_inform
"download
${
_filename
}
OK"
csih_inform
"download
${
_filename
}
OK"
chmod
+x /usr/bin/
${
_cmdname
}
.exe
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
.exe failed"
chmod
+x /usr/bin/
${
_cmdname
}
.exe
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
.exe failed"
fi
done
for
_cmdname
in
ipwin
;
do
for
_cmdname
in
ipwin
;
do
[[
-x
/usr/bin
${
_cmdname
}
]]
&&
continue
[[
-x
/usr/bin
/
${
_cmdname
}
]]
&&
continue
if
check_os_is_wow64
;
then
if
check_os_is_wow64
;
then
_filename
=
${
_cmdname
}
-x64
.exe
_filename
=
${
_cmdname
}
-x64
.exe
else
else
...
@@ -204,7 +204,7 @@ function install_slapos_cygwin_package()
...
@@ -204,7 +204,7 @@ function install_slapos_cygwin_package()
csih_error
"download
${
_filename
}
failed"
csih_error
"download
${
_filename
}
failed"
csih_inform
"download
${
_filename
}
OK"
csih_inform
"download
${
_filename
}
OK"
chmod
+x /usr/bin/
${
_cmdname
}
.exe
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
.exe failed"
chmod
+x /usr/bin/
${
_cmdname
}
.exe
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
.exe failed"
fi
done
_path
=
/etc/slapos/scripts
_path
=
/etc/slapos/scripts
csih_inform
"create path:
${
_path
}
"
csih_inform
"create path:
${
_path
}
"
...
@@ -214,6 +214,7 @@ function install_slapos_cygwin_package()
...
@@ -214,6 +214,7 @@ function install_slapos_cygwin_package()
wget
-c
http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/
${
_name
}
-O
${
_path
}
/
${
_name
}
||
wget
-c
http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/
${
_name
}
-O
${
_path
}
/
${
_name
}
||
csih_error
"download
${
_name
}
failed"
csih_error
"download
${
_name
}
failed"
csih_inform
"download script
${
_path
}
/
${
_name
}
OK"
csih_inform
"download script
${
_path
}
/
${
_name
}
OK"
chmod
+x
${
_path
}
/
${
_name
}
||
csih_error
"chmod
${
_path
}
/
${
_name
}
failed"
done
done
}
}
readonly
-f
install_slapos_cygwin_package
readonly
-f
install_slapos_cygwin_package
...
...
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