mirror of
https://github.com/m8tin/cis.git
synced 2026-04-02 19:01:30 +02:00
Restrict ssh access to memebers of group ssh_login
This commit is contained in:
@@ -38,7 +38,7 @@ function cloneOrPull {
|
||||
&& return 0
|
||||
|
||||
! [ -d "${_FOLDER}/.git" ] \
|
||||
&& git clone "${_REPOSITORY}" "${_FOLDER}" &> /dev/null \
|
||||
&& GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=accept-new" git clone "${_REPOSITORY}" "${_FOLDER}" &> /dev/null \
|
||||
&& return 0
|
||||
|
||||
echo "FAIL: The local repository is not updatable: ("$(readlink -f ${0})")" >&2
|
||||
|
||||
Reference in New Issue
Block a user