Merge pull request #28 from fuse314/ssh-rsa
New Parameter PLUGIN_SSH_ACCEPT_RSA
This commit is contained in:
commit
cbf4cd4b5e
@ -7,6 +7,6 @@ RUN apk --no-cache add \
|
|||||||
bash
|
bash
|
||||||
|
|
||||||
ADD upload.sh /bin/
|
ADD upload.sh /bin/
|
||||||
RUN chmod +x /bin/upload.sh
|
RUN chmod +x /bin/upload.sh && mkdir ~/.ssh && chmod 700 ~/.ssh
|
||||||
|
|
||||||
ENTRYPOINT /bin/upload.sh
|
ENTRYPOINT /bin/upload.sh
|
||||||
|
@ -33,6 +33,7 @@ environment:
|
|||||||
PLUGIN_CHMOD: true | false (default true)
|
PLUGIN_CHMOD: true | false (default true)
|
||||||
PLUGIN_CLEAN_DIR: true | false (default false)
|
PLUGIN_CLEAN_DIR: true | false (default false)
|
||||||
PLUGIN_AUTO_CONFIRM: true | false (default false)
|
PLUGIN_AUTO_CONFIRM: true | false (default false)
|
||||||
|
PLUGIN_SSH_ACCEPT_RSA: true | false (default false)
|
||||||
PLUGIN_DEBUG: true | false (default false)
|
PLUGIN_DEBUG: true | false (default false)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -50,6 +50,10 @@ else
|
|||||||
PLUGIN_AUTO_CONFIRM="false"
|
PLUGIN_AUTO_CONFIRM="false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$PLUGIN_SSH_ACCEPT_RSA" = true ]; then
|
||||||
|
echo "HostKeyAlgorithms ssh-rsa" > ~/.ssh/config && echo "PubkeyAcceptedKeyTypes ssh-rsa" >> ~/.ssh/config && chmod 600 ~/.ssh/config
|
||||||
|
fi;
|
||||||
|
|
||||||
PLUGIN_EXCLUDE_STR=""
|
PLUGIN_EXCLUDE_STR=""
|
||||||
PLUGIN_INCLUDE_STR=""
|
PLUGIN_INCLUDE_STR=""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user