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
Kasra Jamshidi
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 @@
...
@@ -18,14 +18,14 @@
#
#
function
show_error_exit
()
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..."
read
-n
1
-p
"Press any key to exit..."
exit
1
exit
1
}
}
readonly
-f
show_error_exit
readonly
-f
show_error_exit
declare
-r
cyghome
=
$(
cygpath
-w
/
)
declare
-r
slapos_prefix
=
$1
declare
-r
slapos_prefix
=
$1
declare
-r
_cygroot
=
$(
cygpath
-w
/
)
_filename
=
/etc/passwd
_filename
=
/etc/passwd
echo
"Checking
${
_filename
}
..."
echo
"Checking
${
_filename
}
..."
...
@@ -81,8 +81,8 @@ if [[ ! -x ${_filename} ]] ; then
...
@@ -81,8 +81,8 @@ if [[ ! -x ${_filename} ]] ; then
cat
<<
EOF
>
${
_filename
}
cat
<<
EOF
>
${
_filename
}
@echo off
@echo off
${
cyghome
:0:2
}
${
_cygroot
:0:2
}
chdir
${
cyghome
}
\\
bin
chdir
${
_cygroot
}
\\
bin
start mintty.exe -i /Cygwin-Terminal.ico -
start mintty.exe -i /Cygwin-Terminal.ico -
EOF
EOF
...
@@ -97,19 +97,20 @@ echo Checking ${_filename} ...
...
@@ -97,19 +97,20 @@ echo Checking ${_filename} ...
if
[[
!
-f
${
_filename
}
]]
;
then
if
[[
!
-f
${
_filename
}
]]
;
then
cat
<<
EOF
>
${
_filename
}
cat
<<
EOF
>
${
_filename
}
@echo off
@echo off
${
cyghome
}
\b
in
\f
ind /opt/slapos -name "*.dll" >
${
cyghome
}
\m
yfile.list
${
_cygroot
:0:2
}
IF EXIST
${
cyghome
}
\o
pt
\s
lapgrid.
${
cyghome
}
\b
in
\f
ind /opt/slapgrid -name "*.dll" >>
${
cyghome
}
\m
yfile.list
CHDIR
${
_cygroot
}
TASKKILL /F /IM openvpn.exe
${
_cygroot
}
\b
in
\f
ind /opt/slapos -name "*.dll" >
${
_cygroot
}
\m
yfile.list
NET STOP re6stne
t
IF EXIST
${
_cygroot
}
\o
pt
\s
lapgrid.
${
_cygroot
}
\b
in
\f
ind /opt/slapgrid -name "*.dll" >>
${
_cygroot
}
\m
yfile.lis
t
NET STOP cygserver
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
syslog-ng
NET STOP
${
slapos_prefix
}
re6stnet
NET STOP
cron
NET STOP
${
slapos_prefix
}
cygserver
NET STOP
sshd
NET STOP
${
slapos_prefix
}
syslog-ng
TASKKILL /F /IM python2.7.exe
NET STOP
${
slapos_prefix
}
cron
${
cyghome
:0:2
}
NET STOP
${
slapos_prefix
}
sshd
chdir
${
cyghome
}
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
%
PATH .
\b
in;%PATH
%
dash /bin/rebaseall -T /myfile.list -v
dash /bin/rebaseall -T /myfile.list -v
EXIT 0
EOF
EOF
chmod
+x
${
_filename
}
chmod
+x
${
_filename
}
echo
"
${
_filename
}
has been generated."
echo
"
${
_filename
}
has been generated."
...
...
windows/scripts/slapos-configure.sh
View file @
4e5d2985
...
@@ -56,6 +56,7 @@ function show_usage()
...
@@ -56,6 +56,7 @@ function show_usage()
echo
" cron Generate cron file and start cron job"
echo
" cron Generate cron file and start cron job"
echo
""
echo
""
}
}
readonly
-f
show_usage
source
$(
/usr/bin/dirname
$0
)
/slapos-include.sh
source
$(
/usr/bin/dirname
$0
)
/slapos-include.sh
csih_inform
"Start slapos node configure ..."
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