Improved upgrade script.

This commit is contained in:
Christian P. MOMON 2023-11-02 05:09:29 +01:00
parent 158d8e28fe
commit ab0a9ae721
2 changed files with 34 additions and 23 deletions

4
doctor Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
ACTION="$@"
su - git -c "cd /srv/gitea/bin ; /srv/gitea/bin/gitea doctor -c /etc/gitea/gitea.ini -w /srv/gitea/ -C /srv/gitea/custom $ACTION"

View file

@ -45,5 +45,12 @@ else
# Start. # Start.
#systemctl start gitea #systemctl start gitea
echo "Please, check then start the service Gitea."
read -e -p "Start Gitea service? [Y/n] " choice
if [[ "$choice" =~ ^[yY]$ ]]; then
echo "Restarting…"
systemctl start gitea
journalctl -f -u gitea
fi
fi fi
fi fi