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
4e5d2985
Commit
4e5d2985
authored
Aug 01, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix autorebase.bat doesn't support multi-nodes
parent
c98cee00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
windows/scripts/post-install.sh
windows/scripts/post-install.sh
+17
-16
windows/scripts/slapos-configure.sh
windows/scripts/slapos-configure.sh
+1
-0
No files found.
windows/scripts/post-install.sh
View file @
4e5d2985
...
...
@@ -18,14 +18,14 @@
#
function
show_error_exit
()
{
echo
Error:
${
1
-Run post-install script failed.
}
echo
Error:
${
1
:-
"Run post-install script failed."
}
read
-n
1
-p
"Press any key to exit..."
exit
1
}
readonly
-f
show_error_exit
declare
-r
cyghome
=
$(
cygpath
-w
/
)
declare
-r
slapos_prefix
=
$1
declare
-r
_cygroot
=
$(
cygpath
-w
/
)
_filename
=
/etc/passwd
echo
"Checking
${
_filename
}
..."
...
...
@@ -81,8 +81,8 @@ if [[ ! -x ${_filename} ]] ; then
cat
<<
EOF
>
${
_filename
}
@echo off
${
cyghome
:0:2
}
chdir
${
cyghome
}
\\
bin
${
_cygroot
:0:2
}
chdir
${
_cygroot
}
\\
bin
start mintty.exe -i /Cygwin-Terminal.ico -
EOF
...
...
@@ -97,19 +97,20 @@ echo Checking ${_filename} ...
if
[[
!
-f
${
_filename
}
]]
;
then
cat
<<
EOF
>
${
_filename
}
@echo off
${
cyghome
}
\b
in
\f
ind /opt/slapos -name "*.dll" >
${
cyghome
}
\m
yfile.list
IF EXIST
${
cyghome
}
\o
pt
\s
lapgrid.
${
cyghome
}
\b
in
\f
ind /opt/slapgrid -name "*.dll" >>
${
cyghome
}
\m
yfile.list
TASKKILL /F /IM openvpn.exe
NET STOP re6stne
t
NET STOP cygserver
NET STOP
syslog-ng
NET STOP
cron
NET STOP
sshd
TASKKILL /F /IM python2.7.exe
${
cyghome
:0:2
}
chdir
${
cyghome
}
path .
\b
in;%path
%
${
_cygroot
:0:2
}
CHDIR
${
_cygroot
}
${
_cygroot
}
\b
in
\f
ind /opt/slapos -name "*.dll" >
${
_cygroot
}
\m
yfile.list
IF EXIST
${
_cygroot
}
\o
pt
\s
lapgrid.
${
_cygroot
}
\b
in
\f
ind /opt/slapgrid -name "*.dll" >>
${
_cygroot
}
\m
yfile.lis
t
bin
\b
ash --login -c "for pid in
\$
(ps | grep '/usr/bin/openvpn' | gawk '{print
$4
}') ; do TASKKILL /F /T /PID
\$
pid ; done"
NET STOP
${
slapos_prefix
}
re6stnet
NET STOP
${
slapos_prefix
}
cygserver
NET STOP
${
slapos_prefix
}
syslog-ng
NET STOP
${
slapos_prefix
}
cron
NET STOP
${
slapos_prefix
}
sshd
bin
\b
ash --login -c "for pid in
\$
(ps | grep '/usr/bin/python2.7' | gawk '{print
\$
4}') ; do TASKKILL /F /T /PID
\$
pid ; done"
PATH .
\b
in;%PATH
%
dash /bin/rebaseall -T /myfile.list -v
EXIT 0
EOF
chmod
+x
${
_filename
}
echo
"
${
_filename
}
has been generated."
...
...
windows/scripts/slapos-configure.sh
View file @
4e5d2985
...
...
@@ -56,6 +56,7 @@ function show_usage()
echo
" cron Generate cron file and start cron job"
echo
""
}
readonly
-f
show_usage
source
$(
/usr/bin/dirname
$0
)
/slapos-include.sh
csih_inform
"Start slapos node configure ..."
...
...
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