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
0a690680
Commit
0a690680
authored
Mar 11, 2013
by
Jean-Baptiste Petre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean install re6stnet
parent
f36b05a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
69 deletions
+23
-69
slapprepare/slapprepare/re6stnet-install.sh
slapprepare/slapprepare/re6stnet-install.sh
+23
-69
No files found.
slapprepare/slapprepare/re6stnet-install.sh
View file @
0a690680
...
...
@@ -2,46 +2,19 @@
echo
"install babel"
# extraction and deplacement rename in babeld
FILE
=
/root/babeld-1.3.4.tar.gz
if
[
-e
$FILE
]
;
then
echo
"babeld-1.3.4.tar.gz already exists"
elif
wget http://heberge-hd.net/slapos/babeld-1.3.4.tar.gz
;
then
echo
"downlaod done"
else
wget http://pkgs.fedoraproject.org/repo/pkgs/babeld/babeld-1.3.4.tar.gz/37be1cbcc23cd00ee47efc9157c58795/babeld-1.3.4.tar.gz
fi
# detect version
KERN
=
$(
uname
-m
)
FILE
=
/root/babeld
if
[
-e
$FILE
]
;
then
echo
"already decompress"
cd
/root/babeld
else
tar
-zvxf
babeld-1.3.4.tar.gz
&&
mv
babeld-1.3.4 babeld
&&
cd
/root/babeld
fi
#dependance
zypper
install
python-pyOpenSSL
# make and make install
FILE
=
/usr/local/bin/babeld
if
[
-e
$FILE
]
;
then
echo
"babeld is already installed"
else
make
sleep
3
su
-c
'make install'
fi
wget http://git.erp5.org/dist/rpm/
$KERN
/python-miniupnpc-1.7-89.g0c0129d.x86_64.rpm
wget http://git.erp5.org/dist/rpm/
$KERN
/babeld-1.3.3-17.ge097312.x86_64.rpm
whet http://git.erp5.org/dist/rpm/noarch/re6stnet-0-281.gb395299.noarch.rpm
echo
"download"
FILE
=
/usr/src/re6stnet
if
[
-e
$FILE
]
;
then
echo
"git pull update"
cd
/usr/src/re6stnet
&&
git pull
--rebase
origin master
echo
"done"
else
echo
"the file does not exist"
cd
/usr/src
&&
git clone http://git.erp5.org/repos/re6stnet.git
echo
"file exists now and download restnet"
fi
rpm
-iv
python-miniupnpc-1.7-89.g0c0129d.x86_64.rpm
rpm
-iv
babeld-1.3.3-17.ge097312.x86_64.rpm
rpm
-iv
re6stnet-0-281.gb395299.noarch.rpm
echo
"file creation in re6stnet /etc/"
FILE
=
/etc/re6stnet
...
...
@@ -53,22 +26,28 @@ else
echo
"done"
fi
echo
"systemed enable and starting service"
systemctl
--system
daemon-reload
systemctl
enable
re6stnet.service
systemctl start re6stnet.service
echo
"sign in anonymous"
FILE
=
/etc/re6stnet/ca.crt
if
[
-e
$FILE
]
;
then
echo
"the file already exists"
echo
"the file already exists"
else
cd
/etc/re6stnet
/usr/src/re6stnet/re6st-conf
--registry
http://re6stnet.nexedi.com/
--anonymous
-r
title
"SlapOS Node"
echo
'recording made'
cd
/etc/re6stnet
re6st-conf
--registry
http://re6stnet.nexedi.com/
--anonymous
-r
title
"SlapOS Node"
-d
/etc/re6stnet/
echo
'recording made'
fi
echo
"write config file re6stnet.conf"
FILE
=
/etc/re6stnet/re6stnet.conf
if
[
-e
$FILE
]
;
then
echo
"file exists"
echo
"file exists"
echo
"table 0"
>
/etc/re6stnet/re6stnet.conf
else
echo
"registry http://re6stnet.nexedi.com/
echo
"registry http://re6stnet.nexedi.com/
ca ca.crt
cert cert.crt
key cert.key
...
...
@@ -78,34 +57,9 @@ ovpnlog
verbose 1
O--verb
O1"
>>
/etc/re6stnet/re6stnet.conf
echo
"the file created"
fi
echo
"write systemd unite"
FILE
=
/etc/systemd/system/re6stnet.service
if
[
-e
$FILE
]
;
then
echo
"file exists"
else
echo
"[Unit]
Description=Nexedi re6st network
[Service]
Type=simple
WorkingDirectory=/etc/re6stnet
ExecStart=/usr/src/re6stnet/re6stnet @re6stnet.conf
StandardOutput=null
StandardError=null
[Install]
WantedBy=multi-user.target"
>>
/etc/systemd/system/re6stnet.service
echo
"the file is create"
echo
"the file created"
fi
echo
"systemed enable and starting service"
systemctl
--system
daemon-reload
systemctl
enable
re6stnet.service
systemctl start re6stnet.service
sleep
50
echo
"sleep 50"
echo
"ping6 start go, option -c5"
...
...
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