fix: set binaries as ghost files
Some checks failed
Continuous Integration / lint_n_build (push) Failing after 17s

This commit is contained in:
2026-03-17 15:33:56 +01:00
parent 65f4191adf
commit 69e0a4f7de

View File

@@ -95,9 +95,13 @@ systemctl reenable gitea.service
systemctl restart gitea.service nginx.service
%postun
# If removing, delete users and db
if [ $1 == 0 ]; then
userdel --force --remove gitea
runuser --user=postgres -- psql --command='DROP DATABASE gitea; DROP USER gitea;'
for i in $(seq 1 4); then
userdel --force --remove actrunner$i
fi
fi
%files
@@ -109,7 +113,8 @@ fi
%attr(644, root, root) %{_unitdir}/gitea.service
%attr(644, root, root) %{_unitdir}/actrunner@.service
%attr(755, root, root) %{_sbindir}/gitea
%ghost %attr(755, root, root) %{_sbindir}/gitea
%ghost %attr(755, root, root) %{_sbindir}/act_runner
%changelog
%autochangelog