@@ -1213,15 +1213,6 @@ Resources:
1213
1213
mode : " 000755"
1214
1214
owner : " ec2-user"
1215
1215
group : " ec2-user"
1216
- " /home/ec2-user/update-certbot " :
1217
- content : |
1218
- #!/bin/bash
1219
- sudo /opt/certbot/bin/pip install --upgrade pip
1220
- sudo /opt/certbot/bin/pip install --upgrade certbot
1221
- sudo /opt/certbot/bin/pip install --upgrade certbot-dns-route53
1222
- mode : " 000755"
1223
- owner : " ec2-user"
1224
- group : " ec2-user"
1225
1216
" /usr/lib/systemd/system/certbot-renew.timer " :
1226
1217
content : |
1227
1218
[Unit]
@@ -1557,10 +1548,19 @@ Resources:
1557
1548
1558
1549
# php-imagick: https://github.com/Imagick/imagick/blob/master/package.xml
1559
1550
yum install -q -y ImageMagick ImageMagick-devel
1560
- yes 'no' | pecl install -f --configureoptions 'with-imagick="autodetect"' imagick
1551
+ # yes 'no' | pecl install -f --configureoptions 'with-imagick="autodetect"' imagick
1552
+ pecl download Imagick
1553
+ tar -xf imagick*.tgz
1554
+ rm -f imagick*.tgz
1555
+ cd imagick*
1556
+ phpize
1557
+ ./configure
1558
+ make
1559
+ make install
1561
1560
if [ $? -eq 0 ]; then
1562
1561
echo 'extension=imagick.so' > /etc/php.d/25-imagick.ini
1563
1562
fi
1563
+ cd /tmp/cfn
1564
1564
1565
1565
# php-redis: https://github.com/phpredis/phpredis/blob/develop/package.xml
1566
1566
yum install -q -y redis-devel lz4-devel
@@ -1658,8 +1658,8 @@ Resources:
1658
1658
amazon-linux-extras install -y python3.8
1659
1659
/usr/bin/python3.8 -m venv /opt/certbot/
1660
1660
/opt/certbot/bin/pip install --upgrade pip
1661
- /opt/certbot/bin/pip install certbot
1662
- /opt/certbot/bin/pip install certbot-dns-route53
1661
+ /opt/certbot/bin/pip install certbot==3.0.1
1662
+ /opt/certbot/bin/pip install certbot-dns-route53==3.0.1
1663
1663
ln -s /opt/certbot/bin/certbot /usr/bin/certbot
1664
1664
1665
1665
# Certbot update script
@@ -1672,8 +1672,7 @@ Resources:
1672
1672
export WEB="${webOption}"
1673
1673
case $WEB in
1674
1674
Apache)
1675
- /opt/certbot/bin/pip install certbot-apache
1676
- echo "sudo /opt/certbot/bin/pip install --upgrade certbot-apache" >> /home/ec2-user/update-certbot
1675
+ /opt/certbot/bin/pip install certbot-apache==3.0.1
1677
1676
yum install -q -y httpd mod_ssl mod_fcgid
1678
1677
systemctl enable httpd
1679
1678
cp /etc/httpd/conf.modules.d/00-mpm.conf /etc/httpd/conf.modules.d/00-mpm.conf."`date +"%Y-%m-%d"`"
@@ -1709,8 +1708,7 @@ Resources:
1709
1708
systemctl restart httpd
1710
1709
;;
1711
1710
Nginx)
1712
- /opt/certbot/bin/pip install certbot-nginx
1713
- echo "sudo /opt/certbot/bin/pip install --upgrade certbot-nginx" >> /home/ec2-user/update-certbot
1711
+ /opt/certbot/bin/pip install certbot-nginx==3.0.1
1714
1712
amazon-linux-extras install -y nginx1
1715
1713
systemctl enable nginx
1716
1714
0 commit comments