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
Alain Takoudjou
slapos.package
Commits
a170d25f
Commit
a170d25f
authored
May 05, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use bin/slapos node format in the init-slapos-node.sh
parent
9edb5dd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
30 deletions
+5
-30
windows/scripts/init-re6stnet.sh
windows/scripts/init-re6stnet.sh
+0
-25
windows/scripts/init-slapos-node.sh
windows/scripts/init-slapos-node.sh
+5
-5
No files found.
windows/scripts/init-re6stnet.sh
deleted
100755 → 0
View file @
9edb5dd3
#! /bin/bash
cd
/opt
if
[[
-f
/miniupnpc.tar.gz
]]
;
then
tar
xzf miniupnpc.tar.gz
mv
$(
ls
miniupnpc-
*
)
miniupnpc
cd
/opt/miniupnpc
python setup.py
install
if
cd
/opt
if
[[
-f
/re6stnet.tar.gz
]]
;
then
tar
xzf re6stnet.tar.gz
mv
$(
ls
re6stnet-
*
)
re6stnet
else
git clone
-b
cygwin
-n
http://git.erp5.org/repos/re6stnet.git
if
cd
/opt/re6stnet
python setup.py
install
mkdir
/etc/re6stnet
cd
/etc/re6stnet
re6st-conf
--registry
http://re6st.example.com/
windows/scripts/init-slapos-node.sh
View file @
a170d25f
...
@@ -28,7 +28,7 @@ function guid2name()
...
@@ -28,7 +28,7 @@ function guid2name()
}
}
# Default node configure filename
# Default node configure filename
cfilename
=
${
1
:
/etc/opt/slapos/slapos.cfg
}
cfilename
=
${
1
-
/etc/opt/slapos/slapos.cfg
}
if
[[
!
-f
$cfilename
]]
;
then
if
[[
!
-f
$cfilename
]]
;
then
echo
"Error: no found configure file
$cfilename
, the computer "
echo
"Error: no found configure file
$cfilename
, the computer "
...
@@ -60,9 +60,9 @@ done
...
@@ -60,9 +60,9 @@ done
echo
"re6stnet network OK."
echo
"re6stnet network OK."
# Run slapformat
# Run slapformat
/opt/slapos/bin/slap
format
-c
--now
$cfilename
||
\
/opt/slapos/bin/slap
os node format
-cv
--now
||
\
(
echo
"
Error: i
nitialize SlapOS Node failed."
;
exit
1
)
(
echo
"
I
nitialize SlapOS Node failed."
;
exit
1
)
echo
"
run slapformat
OK."
echo
"
Initialize SlapOS Node
OK."
# Run slapproxy
# Run slapproxy
/opt/slapos/bin/slapproxy
||
echo
"
Warning: start slapproxy failed
"
/opt/slapos/bin/slapproxy
||
echo
"
Start slapproxy failed.
"
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