Update 'entrypoint'
This commit is contained in:
parent
701d3715ac
commit
428c048152
14
entrypoint
14
entrypoint
@ -14,14 +14,14 @@ if [[ -z "$PLUGIN_PLAYBOOK" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# if [[ -z "$PLUGIN_PRIVATE_KEY" ]]; then
|
||||
# echo -e "\e[31m[WARN] 'private_key' setting not defined !\e[39m"
|
||||
# else
|
||||
if [[ -z "$PLUGIN_PRIVATE_KEY" ]]; then
|
||||
echo -e "\e[31m[WARN] 'private_key' setting not defined !\e[39m"
|
||||
else
|
||||
|
||||
# run_command "mkdir /root/.ssh"
|
||||
# echo "$PLUGIN_PRIVATE_KEY" > /root/.ssh/id_ed25519
|
||||
# run_command chmod 400 /root/.ssh/id_ed25519
|
||||
# fi
|
||||
run_command "mkdir /root/.ssh"
|
||||
echo "$PLUGIN_PRIVATE_KEY" > /root/.ssh/id_ed25519
|
||||
run_command chmod 400 /root/.ssh/id_ed25519
|
||||
fi
|
||||
|
||||
args=("$PLUGIN_PLAYBOOK")
|
||||
|
||||
|
Reference in New Issue
Block a user