Remove temp authorized keys
This commit is contained in:
parent
67de317fc9
commit
25a3ffde48
|
@ -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"
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue