I am trying to build a centos-7 AMI with a packer. I am installing and enabling software collections packages in the shell script--#!/bin/bashset -esudo yum install -y centos-release-sclsudo yum groupinstall "Development Tools" -y && sudo yum install -y devtoolset-8sudo scl enable devtoolset-8 bashecho "Checking enabled SCL's"echo $X_SCLSecho "changing to Redis Directory"cd $LOSANT_DIR/redis-6.0.5echo "verifying the SCL before the code compillation"echo $X_SCLSecho $X_SCLS must show a list of enabled software collections. When I am running from packer I am getting an empty list.Can someone please help me.Thanks,Nandeep.
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/hashicorp/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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/dbaca783-2a55-4a23-a7f2-e82384898c6do%40googlegroups.com.
source scl_source enable devtoolset-8so check the documentation of devtoolset-8 how you are supposed to source the environment from a script