You should use the file privisioner to upload laa.sh and then reference the absolute path.
Scripts running in the shell provisioner are uploaded to remote_path/remote_file, see the docs. On Jan 1, 2017 2:08 AM, "Edward Overton" <eover...@gmail.com> wrote: > I have the code: > "scripts": [ > "scripts/foo.sh" > ] > > I want the shell script foo.sh to call laa.sh. > I keep getting "/tmp/script_1004.sh: line 1: scripts/laa.sh: No such file > or directory." > How do I fix this? What should the contents of foo.sh be? > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to packer-tool+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/d166231f-18e7-4fb4-a361-8b83e574bb0c%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/d166231f-18e7-4fb4-a361-8b83e574bb0c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt8%3DrK94rFu6YiTaK4Qnu01bytbbFppRVeLJuRENGL7tiA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.