From 9cdb60799cce86569ad7746cfd2f061e40aa3cca Mon Sep 17 00:00:00 2001 From: Scottpedia Date: Wed, 2 Aug 2023 10:12:54 +0800 Subject: [PATCH] modify installation command, and fix zip-packaging issue --- aws/cloudformation-template-ipsec.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/cloudformation-template-ipsec.json b/aws/cloudformation-template-ipsec.json index 3a35864..1e40193 100644 --- a/aws/cloudformation-template-ipsec.json +++ b/aws/cloudformation-template-ipsec.json @@ -40,7 +40,7 @@ "HelperInstallationCommands": "export DEBIAN_FRONTEND=noninteractive\nrm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED\napt-get -yq update\napt-get -yq install python3-pip zip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n" }, "CentOS7": { - "HelperInstallationCommands": "yum -y install python3 wget zip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n" + "HelperInstallationCommands": "yum -y install python3 wget zip awscli\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n" }, "AmazonLinux2": { "HelperInstallationCommands": "export PATH=\"$PATH:/opt/aws/bin\"\n" @@ -247,11 +247,11 @@ "sh vpn.sh\n", "mkdir /root/profiles\n", "cp /root/vpnclient* /root/profiles\n", - "zip -er --password '", + "cd /root/ && zip -er --password '", { "Ref": "VpnPassword" }, - "' /root/profiles.zip /root/profiles\n", + "' profiles.zip ./profiles\n", "aws s3 cp /root/profiles.zip s3://", { "Ref": "Ikev2S3Bucket"