summarylogtreecommitdiffstats
path: root/gitea.install
blob: 30ad584ced1b6ba8c24bb64d5a8f5211c5537ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pre_install() {
  usermod -d /var/lib/gitea git
}

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

pre_upgrade() {
  pre_install $1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  systemctl stop gitea.service
  systemctl disable gitea.service
}

post_remove() {
  usermod -d / git
}