Commit 18165f34 authored by Yusei Tahara's avatar Yusei Tahara

Update setup.sh

parent 0e922d8f
...@@ -3,10 +3,9 @@ ...@@ -3,10 +3,9 @@
# You must use a machine which has at least two cpu cores. # You must use a machine which has at least two cpu cores.
set -x set -x
apt-get update apt-get update
apt-get install -y wget git xz-utils apache2 apt-get install -y wget git apache2
echo "deb http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/ ./" | tee /etc/apt/sources.list.d/slapos.list wget http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_9.0/amd64/slapos-node_1.4.3+1.0.56+2-1_amd64.deb
wget -O- "http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/Release.key" | apt-key add - dpkg -i slapos-node_1.4.3+1.0.56+2-1_amd64.deb
apt-get update
ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/ ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/ ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/
...@@ -14,7 +13,6 @@ ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/ ...@@ -14,7 +13,6 @@ ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/
wget -O /etc/apache2/sites-enabled/erp5apachefront.conf https://lab.nexedi.com/yusei/a/raw/master/erp5apachefront.conf wget -O /etc/apache2/sites-enabled/erp5apachefront.conf https://lab.nexedi.com/yusei/a/raw/master/erp5apachefront.conf
rm /etc/apache2/sites-enabled/000-default.conf rm /etc/apache2/sites-enabled/000-default.conf
systemctl restart apache2.service systemctl restart apache2.service
apt-get install -y slapos-node
slapos configure local slapos configure local
wget -O /etc/opt/slapos/slapos.cfg https://lab.nexedi.com/yusei/a/raw/master/slapos.cfg wget -O /etc/opt/slapos/slapos.cfg https://lab.nexedi.com/yusei/a/raw/master/slapos.cfg
wget -O /etc/opt/slapos/computer_definition.cfg https://lab.nexedi.com/yusei/a/raw/master/computer_definition.cfg wget -O /etc/opt/slapos/computer_definition.cfg https://lab.nexedi.com/yusei/a/raw/master/computer_definition.cfg
......
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