Diff of /alx-src/tags/alxconf-0_6_10/functions/config_ssh_auth.sh
Parent Directory | Revision Log | Patch
revision 2036 by niro, Wed May 11 09:11:25 2011 UTC | revision 2162 by niro, Wed May 18 14:35:26 2011 UTC | |
---|---|---|
# | Line 34 config_ssh_auth() | Line 34 config_ssh_auth() |
34 | ||
35 | if [[ ! -z ${PUB_KEY_SERVER} ]] | if [[ ! -z ${PUB_KEY_SERVER} ]] |
36 | then | then |
37 | HOME=/root | HOME="/root" |
38 | # only if not empty | # only if not empty |
39 | [ ! -d $HOME/.ssh ] && install -d $HOME/.ssh | [ ! -d $HOME/.ssh ] && install -d $HOME/.ssh |
40 | CONFIG=$HOME/.ssh/authorized_keys | CONFIG="$HOME/.ssh/authorized_keys" |
41 | clearconfig | clearconfig |
42 | addconfig "${PUB_KEY_SERVER}" | addconfig "${PUB_KEY_SERVER}" |
43 | fi | fi |
|