pythonweb/Setup.sh

22 lines
547 B
Bash
Raw Normal View History

2020-04-26 22:12:40 -04:00
#!/bin/bash
apt update
2020-04-29 15:33:29 -04:00
apt install -y neofetch fortune-mod vim python3-pip git
2020-04-26 22:12:40 -04:00
echo "" > /etc/motd
echo "" >> /etc/bash.bashrc
echo "neofetch" >> /etc/bash.bashrc
echo "/usr/games/fortune" >> /etc/bash.bashrc
git clone https://dev.ilab.cl/public/pythonweb.git /srv
2020-04-26 22:12:40 -04:00
cd /srv
2020-04-29 15:33:29 -04:00
pip3 install setuptools gunicorn
2020-04-26 22:12:40 -04:00
pip3 install -r web-interface/requirements.txt
cp -f webinterface.service.sample /etc/systemd/system/webinterface.service
systemctl unmask webinterface.service
systemctl enable webinterface.service
systemctl start webinterface.service