loggin
parent
3f4bf977a9
commit
2640d166a1
4
Setup.sh
4
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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue