From 053cd1b7fe10f746792e0d1353fad4ad04e8ebe9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 18 Apr 2018 16:41:27 +0800 Subject: Add git role: host git repos and share repos via cgit * Host git repositories * Share git repositories through web interface via cgit * The static resources used by cgit is also managed/deployed by a git repo ^_^ --- .../no-interactive-login.disabled | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 roles/git/files/git-shell-commands/no-interactive-login.disabled (limited to 'roles/git/files/git-shell-commands/no-interactive-login.disabled') diff --git a/roles/git/files/git-shell-commands/no-interactive-login.disabled b/roles/git/files/git-shell-commands/no-interactive-login.disabled new file mode 100644 index 0000000..3be7efc --- /dev/null +++ b/roles/git/files/git-shell-commands/no-interactive-login.disabled @@ -0,0 +1,23 @@ +#!/bin/sh +# +# ~/git-shell-commands/no-interactive-login +# +# Disable interactive logins, displaying a greeting instead. +# See git-shell(1) +# +# Remove/rename this script to allow interactive logins, e.g., +# allow `su - git` to add SSH keys. +# +# +# Aaron LI +# 2017-06-18 +# + +cat <<_EOF_ +Hi ${USER}! +You've successfully authenticated, but interactive shell +access is not provided. +Bye~ +_EOF_ + +exit 128 -- cgit v1.2.2