Improved upgrade script.
This commit is contained in:
parent
158d8e28fe
commit
ab0a9ae721
2 changed files with 34 additions and 23 deletions
4
doctor
Executable file
4
doctor
Executable 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"
|
7
upgrade
7
upgrade
|
@ -45,5 +45,12 @@ else
|
|||
|
||||
# Start.
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue