forked from pool/openssh
Accepting request 141090 from home:kukuk:branches:network
- Fix groupadd arguments - Add LSB tag to sshd init script OBS-URL: https://build.opensuse.org/request/show/141090 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=41
This commit is contained in:
parent
b4cc1b8406
commit
22f435a6cb
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 13 10:26:16 CET 2012 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Fix groupadd arguments
|
||||||
|
- Add LSB tag to sshd init script
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 26 15:01:21 UTC 2012 - coolo@suse.com
|
Fri Oct 26 15:01:21 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ install -D -m 0644 %{SOURCE12} %{buildroot}%{_unitdir}/sshd.service
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group sshd >/dev/null || %{_sbindir}/groupadd -o -r sshd
|
getent group sshd >/dev/null || %{_sbindir}/groupadd -r sshd
|
||||||
getent passwd sshd >/dev/null || %{_sbindir}/useradd -r -g sshd -d /var/lib/sshd -s /bin/false -c "SSH daemon" sshd
|
getent passwd sshd >/dev/null || %{_sbindir}/useradd -r -g sshd -d /var/lib/sshd -s /bin/false -c "SSH daemon" sshd
|
||||||
%if 0%{?has_systemd}
|
%if 0%{?has_systemd}
|
||||||
%service_add_pre sshd.service
|
%service_add_pre sshd.service
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
# Default-Start: 3 5
|
# Default-Start: 3 5
|
||||||
# Default-Stop: 0 1 2 6
|
# Default-Stop: 0 1 2 6
|
||||||
# Description: Start the sshd daemon
|
# Description: Start the sshd daemon
|
||||||
|
# Short-Description: Start the sshd daemon
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
SSHD_BIN=/usr/sbin/sshd
|
SSHD_BIN=/usr/sbin/sshd
|
||||||
|
Loading…
Reference in New Issue
Block a user