change git user to use /bin/bash instead

This commit is contained in:
Louis Abel
2024-01-06 08:27:51 -07:00
parent 89c5b844f3
commit 0c35370327
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -6,7 +6,7 @@
Name: gitea
Version: %{major_version}.%{minor_version}.%{micro_version}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A painless self-hosted Git service
License: MIT
URL: https://gitea.io
@@ -148,7 +148,7 @@ EOF
%else
%{_sbindir}/groupadd -r git 2>/dev/null || :
%{_sbindir}/useradd -r -g git \
-s /sbin/nologin -d %{_datadir}/%{name} \
-s /bin/bash -d %{_datadir}/%{name} \
-c 'Gitea' git 2>/dev/null || :
%endif
@@ -197,6 +197,9 @@ systemd-tmpfiles --create %{name}.conf || :
%{_datadir}/%{name}/docs.gitea.io
%changelog
* Sat Jan 06 2024 Louis Abel <tucklesepk@gmail.com> - 1.21.3-2
- Change git user shell to /bin/bash
* Thu Dec 21 2023 Louis Abel <tucklesepk@gmail.com> - 1.21.3-1
- Update to 1.21.3
+2 -2
View File
@@ -1,3 +1,3 @@
#Type Name ID GECOS Home directory
#Type Name ID GECOS Home directory Shell
g git -
u git - "Gitea" /usr/share/gitea
u git - "Gitea" /usr/share/gitea /bin/bash