1
0
mirror of synced 2024-12-01 09:06:04 +03:00

modify installation command, and fix zip-packaging issue

This commit is contained in:
Scottpedia 2023-08-02 10:12:54 +08:00
parent a36314bc0d
commit 9cdb60799c

View File

@ -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" "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": { "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": { "AmazonLinux2": {
"HelperInstallationCommands": "export PATH=\"$PATH:/opt/aws/bin\"\n" "HelperInstallationCommands": "export PATH=\"$PATH:/opt/aws/bin\"\n"
@ -247,11 +247,11 @@
"sh vpn.sh\n", "sh vpn.sh\n",
"mkdir /root/profiles\n", "mkdir /root/profiles\n",
"cp /root/vpnclient* /root/profiles\n", "cp /root/vpnclient* /root/profiles\n",
"zip -er --password '", "cd /root/ && zip -er --password '",
{ {
"Ref": "VpnPassword" "Ref": "VpnPassword"
}, },
"' /root/profiles.zip /root/profiles\n", "' profiles.zip ./profiles\n",
"aws s3 cp /root/profiles.zip s3://", "aws s3 cp /root/profiles.zip s3://",
{ {
"Ref": "Ikev2S3Bucket" "Ref": "Ikev2S3Bucket"