Skip to content

Commit

Permalink
updated centos script
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Delran committed Feb 12, 2024
1 parent 6b3140e commit dc0c833
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DeadlineStack/workers_amazon_linux_2_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ AD_DNS_1=""
# Active directory dns IP 2
AD_DNS_2=""
capactivedirectory=${activedirectory^^}
password=`aws secretsmanager get-secret-value --region $region --secret-id $secret | python -c "import sys, json; obj=json.load(sys.stdin)['SecretString'];print json.loads(obj)['password']"`
sudo yum -y install python
password=$(aws secretsmanager get-secret-value --region $region --secret-id $secret | python3 -c "import sys, json; obj=json.load(sys.stdin)['SecretString'];print(json.loads(obj)['password'])")



sudo yum -y update
Expand Down

0 comments on commit dc0c833

Please sign in to comment.