fix: set binaries as ghost files
Some checks failed
Continuous Integration / lint_n_build (push) Failing after 17s
Some checks failed
Continuous Integration / lint_n_build (push) Failing after 17s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user