gitea migration

Post a reply

This question is a means of preventing automated form submissions by spambots.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: gitea migration

gitea migration

by dendiz » Thu Mar 21, 2019 9:21 pm

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