Commit cc5f27fa authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos-quick-install] Minor workarround for re6st and better verbose

parent eaf67b2d
#!/bin/sh -e !/bin/sh -e
# This Script automates the the setup of SLAPOS Servers with # This Script automates the the setup of SLAPOS Servers with
# Essential information. # Essential information.
...@@ -35,6 +35,12 @@ if [ ! -f /etc/re6stnet/re6stnet.conf ]; then ...@@ -35,6 +35,12 @@ if [ ! -f /etc/re6stnet/re6stnet.conf ]; then
# Register re6stnet. # Register re6stnet.
re6st-conf --registry http://re6stnet.nexedi.com/ -r title $COMPUTERNAME -d /etc/re6stnet --anonymous re6st-conf --registry http://re6stnet.nexedi.com/ -r title $COMPUTERNAME -d /etc/re6stnet --anonymous
# For some reason this initial restart still needed
# for workarround eventual default routes.
/etc/init.d/re6stnet restart
sleep 2
echo "table 0" >> /etc/re6stnet/re6stnet.conf echo "table 0" >> /etc/re6stnet/re6stnet.conf
echo "interface eth0" >> /etc/re6stnet/re6stnet.conf echo "interface eth0" >> /etc/re6stnet/re6stnet.conf
...@@ -72,7 +78,9 @@ if [ ! -f /etc/opt/slapos/slapos.cfg ]; then ...@@ -72,7 +78,9 @@ if [ ! -f /etc/opt/slapos/slapos.cfg ]; then
fi fi
cat > /usr/local/sbin/slapos-tweak << EOF cat > /usr/local/sbin/slapos-tweak << EOF
#!/bin/sh -e #!/bin/bash
set -e
mkdir -v -p -m 0755 `grep ^certificate_repository_path /etc/opt/slapos/slapos.cfg | sed 's/^certificate_repository_path.*= *//'` mkdir -v -p -m 0755 `grep ^certificate_repository_path /etc/opt/slapos/slapos.cfg | sed 's/^certificate_repository_path.*= *//'`
...@@ -125,7 +133,7 @@ modprobe f71882fg > /dev/null 2>&1 ...@@ -125,7 +133,7 @@ modprobe f71882fg > /dev/null 2>&1
# Activate KSM (shared memory for KVM) # Activate KSM (shared memory for KVM)
echo 1 > /sys/kernel/mm/ksm/run echo 1 > /sys/kernel/mm/ksm/run
slapos format --now slapos node format --now
EOF EOF
......
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