Skip to content

Commit

Permalink
added quotes for echo to sanitize input
Browse files Browse the repository at this point in the history
  • Loading branch information
willjasen committed Jul 28, 2021
1 parent dd9c6a4 commit ebf643a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/ResilioSync.template
Original file line number Diff line number Diff line change
Expand Up @@ -411,16 +411,16 @@
"commands" : {
"01-encrypt-volume" : {
"command" : { "Fn::Join" : ["", [
"echo ",
"echo \"",
{ "Ref": "DiskEncryptionPassword" },
" | cryptsetup luksFormat /dev/xvdf"
"\" | cryptsetup luksFormat /dev/xvdf"
]]}
},
"02-open-volume" : {
"command" : { "Fn::Join" : ["", [
"echo ",
"echo \"",
{ "Ref": "DiskEncryptionPassword" },
" | cryptsetup luksOpen /dev/xvdf storedev"
"\" | cryptsetup luksOpen /dev/xvdf storedev"
]]}
},
"03-format-volume" : {
Expand Down

0 comments on commit ebf643a

Please sign in to comment.