fix: dump as gitea

This commit is contained in:
2026-03-01 15:39:38 +01:00
parent 13ed7bfcd8
commit c313318eb0

View File

@@ -59,7 +59,7 @@ systemctl restart gitea.service
%preun
# Backup gitea data in case of problem
gitea dump --config %{_sysconfdir}/gitea/app.ini --tempdir %{_tmppath}
runuser --user gitea -- gitea dump --config %{_sysconfdir}/gitea/app.ini --tempdir %{_tmppath}
%postun
# Remove gitea user after uninstall