diff --git a/Setup.sh b/Setup.sh index 9e1a4ea..e929331 100644 --- a/Setup.sh +++ b/Setup.sh @@ -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 diff --git a/webinterface.service.sample b/webinterface.service.sample index 29cd7c2..5614eae 100644 --- a/webinterface.service.sample +++ b/webinterface.service.sample @@ -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]