Page 1 of 1

gitea migration

Posted: Thu Mar 21, 2019 9:21 pm
by dendiz
this is the second time I had to migrate my gitea installation to another server. I had the same issues with the git hooks not working and my pushes being rejected because of this. The issue is that the configuration file for the hooks in the directory /data/gitea/git/repositories/<user>/<repo>/hooks/<hook>.d/gitea contains an invalid location for the configuration file as a parameter.

Code: Select all

"/usr/local/bin/gitea" hook --config='/etc/gitea/app.ini' update $1 $2 $3
should be

Code: Select all

"/usr/local/bin/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3