blob: 7db55e1e451222674960a7a263e73150ef48b1d8 (
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 -s /usr/bin/bash 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 / -s /usr/bin/git-shell git
}
|