webapp: Fix authorized_keys line added when setting up a rsync remote on a server that also supports git-annex, to not force running git-annex-shell.

This commit is contained in:
Joey Hess 2013-07-08 12:51:07 -04:00
parent ea12e0ff8f
commit 57f5c9f41a
2 changed files with 4 additions and 1 deletions

View file

@ -303,7 +303,7 @@ makeSsh' rsync setup origsshdata sshdata keypair = do
, if rsync then Nothing else Just "if [ ! -d .git ]; then git init --bare --shared; fi"
, if rsync then Nothing else Just "git annex init"
, if needsPubKey sshdata
then addAuthorizedKeysCommand (rsyncOnly sshdata) remotedir . sshPubKey <$> keypair
then addAuthorizedKeysCommand (rsync || rsyncOnly sshdata) remotedir . sshPubKey <$> keypair
else Nothing
]