Changed pma port to 8080

I also that systemctl stuff is echoed and not wgeted
This commit is contained in:
2023-01-30 09:05:00 -08:00
parent 7054ab4815
commit cc987eac61
4 changed files with 76 additions and 6 deletions

View File

@ -33,7 +33,26 @@ sudo chmod -R 750 /var/lib/gitea
sudo mkdir -v /etc/gitea
sudo chown -R root:git /etc/gitea
sudo chmod -R 770 /etc/gitea
sudo wget -O /etc/systemd/system/gitea.service https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/systemd/gitea.service
sudo echo "
[Unit]
Description=Gitea
After=syslog.target
After=network.target
[Service]
RestartSec=3s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target
" >> /etc/systemd/system/gitea.service
sudo systemctl daemon-reload
sudo systemctl enable --now gitea
sudo systemctl start gitea