master
ifiguero 2020-04-29 17:34:54 -04:00
parent 3f4bf977a9
commit 2640d166a1
2 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,6 @@
#!/bin/bash
apt update
apt upgrade
apt install -y neofetch fortune-mod vim python3-pip git
echo "" > /etc/motd
@ -9,7 +8,6 @@ echo "" > /etc/motd
echo "" >> /etc/bash.bashrc
echo "neofetch" >> /etc/bash.bashrc
echo "/usr/games/fortune" >> /etc/bash.bashrc
echo "set mouse=" >> /etc/vim/vimrc
git clone https://dev.ilab.cl/git/public/pythonweb.git /srv
@ -17,8 +15,6 @@ cd /srv
pip3 install setuptools gunicorn
pip3 install -r web-interface/requirements.txt
systemctl stop webinterface.service
cp -f webinterface.service.sample /etc/systemd/system/webinterface.service
systemctl unmask webinterface.service

View File

@ -5,7 +5,7 @@ After=network.target
[Service]
User=root
WorkingDirectory=/srv/web-interface
ExecStart=/usr/local/bin/gunicorn -b 0.0.0.0:80 wsgi:app
ExecStart=/usr/local/bin/gunicorn -b 0.0.0.0:80 wsgi:app --access-gfile /var/log/web-access.log --error-logfile /var/log/web-error.log
Restart=always
[Install]