Package Details: gitea 1.4.2-4

Git Clone URL: (read-only)
Package Base: gitea
Description: Git with a cup of tea, forked from Gogs. Is a Self Hosted Git Service in the Go Programming Language.
Upstream URL:
Licenses: MIT
Conflicts: gitea-git, gitea-git-dev
Submitter: frederik
Maintainer: frederik
Last Packager: frederik
Votes: 25
Popularity: 3.001901
First Submitted: 2016-11-28 17:05
Last Updated: 2018-06-18 07:39

Dependencies (9)

Required by (0)

Sources (4)

Pinned Comments

frederik commented on 2017-01-23 17:12

To use gitea with openssh OOTB you may want to change the home directory of the git user to /var/lib/gitea/repos:

usermod -d /var/lib/gitea/repos git

Latest Comments

frederik commented on 2018-06-18 06:12

@mgulick Should not happen with the current release again. Sorry for the inconvenience

mgulick commented on 2018-06-18 01:27

I assume it is unintentional that this pkgbuild is creating the directory '/var/lib/gitea/*':

[mgulick@altair ~]$ ls -la /var/lib/gitea
total 0
drwxr-xr-x 1 git  git  130 Jun 17 21:16  .
drwxr-xr-x 1 root root 326 Jun 17 00:00  ..
drwxr-x--- 1 git  git    0 Jun 17 21:16 '*'
drwxr-x--- 1 git  git    0 Mar 10 12:27  attachments
drwxr-x--- 1 git  git   12 Mar 10 12:27  conf
drwxr-x--- 1 git  git   22 Mar 10 12:46  data
drwxr-x--- 1 git  git   24 Mar 28 21:38  indexer
drwxr-x--- 1 git  git   24 Mar 10 12:46  indexers
drwxr-x--- 1 git  git   66 Mar 10 12:27  options
drwxr-x--- 1 git  git   66 Jun 17 21:16  public
drwxr-x--- 1 git  git   42 Jun  7 21:48  repos
drwxr-x--- 1 git  git  152 Jun 17 21:16  templates
drwxr-x--- 1 git  git    0 Mar 10 12:27  tmp

I removed this directory manually after upgrading the package.

francoism90 commented on 2018-06-16 10:57

I have updated my PKG ( and

I really recommend using an own user (e.g. gitea) or change the home from git to /home/git so SSH will work in a better way. Also don't providing an app.ini, but simple patch/sed; this should also fix the need of things like this: cp -r "${srcdir}/src/${pkgname}/options/locale" "${pkgdir}/var/lib/${pkgname}/conf"

Upstream recommends to use /home/git/gitea-repositories instead of /var/lib/gitea/repos.

If you need any help or info let me know.

matthias.lisin commented on 2018-06-12 11:29

@nobicycle sudo chgrp git /etc/gitea/app.ini

nobicycle commented on 2018-06-10 03:16

I get an error condition starting gitea

After install I commented out in service file.


sudo systemctl status gitea Jun 10 11:07:29 tower systemd[1]: gitea.service: Start request repeated too quickly.

Manually: sudo -u git /bin/bash "USER=git HOME=/var/lib/gitea/repos GITEA_WORK_DIR=/var/lib/gitea; cd "$HOME"; /usr/bin/gitea web --config /etc/gitea/app.ini" /bin/bash: USER=git HOME=/var/lib/gitea/repos GITEA_WORK_DIR=/var/lib/gitea; cd /home/me; /usr/bin/gitea web --config /etc/gitea/app.ini: Permission denied

Step by step: $ sudo -u git /bin/bash bash: /var/lib/gitea/repos/.bashrc: Permission denied

Try to fix: sudo chown git:git -R /var/lib/gitea/repos cd /var/lib/gitea/ [git@tower gitea]$ HOME=/var/lib/gitea/repos GITEA_WORK_DIR=/var/lib/gitea /usr/bin/gitea web --config /etc/gitea/app.ini 2018/06/10 11:15:43 [...s/setting/setting.go:946 NewContext()] [E] Error saving generated JWT Secret to custom config: open /etc/gitea/app.ini: permission denied

Speranskiy commented on 2018-06-02 04:02

I've faced the same issue, so I needed bindata build tag in order to start gitea successfully.

mqs commented on 2018-05-10 12:32

@frederik Thanks, I will propably go with the second suggestion (the first one assumes that the repo folder has one partition for itself which i could then mount there, which is definitely not the case)

But I still want to know the reasons for adding that line, at least for educational purposes ;)

Anyway, thank you for your help!

frederik commented on 2018-05-09 23:28

@mgq You could either mount the hdd folder there instead of linking it, or you create the link in the repos folder and change the repos path in the gitea config to point to that subfolder (link) within "repos".

mqs commented on 2018-05-09 22:24

Hey! I have installed this on a raspberry pi, with the 'repos' dir symlinked to a hdd. But because repos is managed by this package, the link is replaced on every update... Is there a reason that Line 42 ( exists? removing that line would propably solve the issue while bringing no harm to everybody else(after all gitea-git also only manages the parent folder)

If you decide to keep the line, do you know a better workaround than 'forking' the package locally? I just don't want to reset the link after every update...

frederik commented on 2018-05-07 16:00

@enckse Thx, will be fixed with next release.

All comments