Commit 5a5b6eb6 authored by Jean-Baptiste Petre's avatar Jean-Baptiste Petre

debug code

parent 2dc6888e
#!/bin/bash
echo "install babel"
echo "install babel and re6stnet"
# detect version
KERN=$(uname -m)
......@@ -8,12 +8,12 @@ KERN=$(uname -m)
#dependance
zypper install python-pyOpenSSL
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
wget http://git.erp5.org/dist/rpm/$KERN/python-miniupnpc-1.7-89.g0c0129d.$KERN.rpm
wget http://git.erp5.org/dist/rpm/$KERN/babeld-1.3.3-17.ge097312.$KERN.rpm
wget http://git.erp5.org/dist/rpm/noarch/re6stnet-0-281.gb395299.noarch.rpm
rpm -iv python-miniupnpc-1.7-89.g0c0129d.x86_64.rpm
rpm -iv babeld-1.3.3-17.ge097312.x86_64.rpm
rpm -iv python-miniupnpc-1.7-89.g0c0129d.$KERN.rpm
rpm -iv babeld-1.3.3-17.ge097312.$KERN.rpm
rpm -iv re6stnet-0-281.gb395299.noarch.rpm
echo "file creation in re6stnet /etc/"
......@@ -26,18 +26,13 @@ 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"
else
cd /etc/re6stnet
re6st-conf --registry http://re6stnet.nexedi.com/ --anonymous -r title "SlapOS Node" -d /etc/re6stnet/
re6st-conf --registry http://re6stnet.nexedi.com/ --anonymous -r title "test : SlapOS Node" -d /etc/re6stnet/
echo 'recording made'
fi
......@@ -45,7 +40,7 @@ echo "write config file re6stnet.conf"
FILE=/etc/re6stnet/re6stnet.conf
if [ -e $FILE ]; then
echo "file exists"
echo "table 0" > /etc/re6stnet/re6stnet.conf
echo "table 0" >> /etc/re6stnet/re6stnet.conf
else
echo "registry http://re6stnet.nexedi.com/
ca ca.crt
......@@ -60,8 +55,13 @@ O1" >> /etc/re6stnet/re6stnet.conf
echo "the file created"
fi
sleep 50
echo "sleep 50"
echo "systemed enable and starting service"
systemctl --system daemon-reload
systemctl enable re6stnet.service
systemctl start re6stnet.service
echo "sleep 60"
sleep 60
echo "ping6 start go, option -c5"
ping6 -c 5 google.com
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment