summarylogtreecommitdiffstats
path: root/gitea.install
blob: 193c0f21e1b6fc764c80887fd54673b5cab5e1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install()
  usermod -d /var/lib/gitea git
  chown -R git:git /var/lib/gitea /var/log/gitea
  chown -R root:git /etc/gitea
  systemctl daemon-reload
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  systemctl stop gitea.service
  systemctl disable gitea.service
  usermod -d / git
}