Browse Source

gitolite: Permit SSH login for gitolite user (git)

The user defined in order to own and admin gitolite directories needs
to not be expired else logins such SSH access will not be allowed for
that user.  So we unexpire user git by default.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
lilik-openwrt-22.03
Daniel F. Dickinson 6 years ago
parent
commit
f27c3ae565
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      net/gitolite/Makefile

+ 1
- 0
net/gitolite/Makefile View File

@ -42,6 +42,7 @@ endef
define Package/gitolite/postinst define Package/gitolite/postinst
sed -i -e 's,/var/run/git,/srv/git,' $${IPKG_INSTROOT}/etc/passwd sed -i -e 's,/var/run/git,/srv/git,' $${IPKG_INSTROOT}/etc/passwd
sed -i -e 's,git:\(.*\):/bin/false,git:\1:/bin/ash,' $${IPKG_INSTROOT}/etc/passwd sed -i -e 's,git:\(.*\):/bin/false,git:\1:/bin/ash,' $${IPKG_INSTROOT}/etc/passwd
sed -i -e 's,git:x:0:\(.*\)$$,git:x:99999:\1,' $${IPKG_INSTROOT}/etc/shadow
endef endef
define Build/Configure define Build/Configure


Loading…
Cancel
Save