summarylogtreecommitdiffstats
path: root/gitea.install
blob: d01cff059a7c6bf4726e26c0adb786290378f501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pre_install() {
  useradd -d /home/gitea -m -r -U -s /usr/bin/bash gitea
}

post_install() {
  chown -R gitea:gitea /var/lib/gitea
  chown -R gitea:gitea /var/log/gitea
  chown -R gitea:gitea /etc/gitea
  systemctl daemon-reload
}

post_upgrade() {
  post_install $1
}