Commit 69b8d3b7 authored by Yusei Tahara's avatar Yusei Tahara

Add new file

parent 8dc347e6
#!/bin/bash
# You can setup erp5 in your computer without ipv6.
# You must use a machine which has at least two cpu cores.
set -x
apt-get update
apt-get install -y wget git xz-utils apache2
echo "deb http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/ ./" | tee /etc/apt/sources.list.d/slapos.list
wget -O- "http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/Release.key" | apt-key add -
apt-get update
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.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/
wget -O /etc/apache2/sites-enabled/erp5apachefront.conf https://lab.nexedi.cn/yusei/a/raw/master/erp5apachefront.conf
rm /etc/apache2/sites-enabled/000-default.conf
systemctl restart apache2.service
apt-get install -y slapos-node
slapos configure local
wget -O /etc/opt/slapos/slapos.cfg https://lab.nexedi.cn/yusei/a/raw/master/slapos.cfg
wget -O /etc/opt/slapos/computer_definition.cfg https://lab.nexedi.cn/yusei/a/raw/master/computer_definition.cfg
slapos proxy start
slapos node format --now
git clone https://lab.nexedi.com/nexedi/slapos.git /tmp/slapos
slapos supply /tmp/slapos/software/wendelin/software.cfg local_computer
slapos request wendelin /tmp/slapos/software/wendelin/software.cfg
\ No newline at end of file
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