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 }