Remove temp authorized keys

This commit is contained in:
Arsenii Petrovich 2019-06-08 18:53:25 +03:00
parent 67de317fc9
commit 25a3ffde48
1 changed files with 9 additions and 1 deletions

View File

@ -53,6 +53,14 @@
"/opt/app/bin/deployment/stop",
"/opt/app/bin/deployment/build"
],
"type": "shell"
},
{
"execute_command": "echo 'packer' | sudo -S env {{ .Vars }} {{ .Path }}",
"inline": [
"rm /home/ec2-user/.ssh/authorized_keys",
"rm /root/.ssh/authorized_keys"
],
"type": "shell"
}
],