@glicogh/healthcare-cdk 0.1.66 → 0.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
 
2
2
  # install certbot
3
+ sudo snap install core
3
4
  sudo snap refresh core
4
5
  sudo apt remove certbot
5
6
  sudo snap install --classic certbot
@@ -11,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
11
12
 
12
13
  # obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
13
14
  if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
14
- sudo certbot certonly --standalone -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
+ sudo certbot certonly --nginx -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
16
  fi
16
17
 
17
18
  # register SSL renewal cron
18
- certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
+ certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
20
  certbot_cron_job="0 0,12 * * * $certbot_cron_command"
20
21
  ( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
21
22
 
@@ -1,5 +1,6 @@
1
1
 
2
2
  # install certbot
3
+ sudo snap install core
3
4
  sudo snap refresh core
4
5
  sudo apt remove certbot
5
6
  sudo snap install --classic certbot
@@ -11,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
11
12
 
12
13
  # obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
13
14
  if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
14
- sudo certbot certonly --standalone -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
+ sudo certbot certonly --nginx -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
16
  fi
16
17
 
17
18
  # register SSL renewal cron
18
- certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
+ certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
20
  certbot_cron_job="0 0,12 * * * $certbot_cron_command"
20
21
  ( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
21
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glicogh/healthcare-cdk",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "description": "CDK automations",
5
5
  "bin": {
6
6
  "cdk": "bin/cdk.js"
@@ -1,5 +1,6 @@
1
1
 
2
2
  # install certbot
3
+ sudo snap install core
3
4
  sudo snap refresh core
4
5
  sudo apt remove certbot
5
6
  sudo snap install --classic certbot
@@ -11,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
11
12
 
12
13
  # obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
13
14
  if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
14
- sudo certbot certonly --standalone -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
+ sudo certbot certonly --nginx -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
16
  fi
16
17
 
17
18
  # register SSL renewal cron
18
- certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
+ certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
20
  certbot_cron_job="0 0,12 * * * $certbot_cron_command"
20
21
  ( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
21
22
 
@@ -1,5 +1,6 @@
1
1
 
2
2
  # install certbot
3
+ sudo snap install core
3
4
  sudo snap refresh core
4
5
  sudo apt remove certbot
5
6
  sudo snap install --classic certbot
@@ -11,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
11
12
 
12
13
  # obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
13
14
  if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
14
- sudo certbot certonly --standalone -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
+ sudo certbot certonly --nginx -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
15
16
  fi
16
17
 
17
18
  # register SSL renewal cron
18
- certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
+ certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
19
20
  certbot_cron_job="0 0,12 * * * $certbot_cron_command"
20
21
  ( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
21
22