magic_recipes_two 0.0.58 → 0.0.59
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.
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZWNmYWQ5NTk0NGIxZDJlMGI0YmM4Y2QzNTFkM2M5NGIxNzJiZDkxOQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZGNkNTdiODYwNzI3ZTQxYzlmYWJkMzdiNTZlOGM2ZmJjNzUwMzExYQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OWVkMTMzNDNmYzQ4ZmYwOWQ2ZGUyMmM5ZGYxZWU3OTJhZjllNDFkZDcwOTY4
|
|
10
|
+
M2VlMzlhMjJkYjYzZGVkZWZhMzBkOTQ0MDdjY2FmMjcwZWJlMzEzMmZjNzFk
|
|
11
|
+
OWVmMGUzYjI4ZDQwZThhNDA0YjI3NWMwMDllNTU1MmNlZjkzNDg=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MmY3Nzc2MzEyYTI1MTdlM2VhNjk5MTBmM2E4MTA2MmE0MTA4ZGY1ZDlmYjgy
|
|
14
|
+
ZmExYzM0YzM4YWZkM2U1NjBkMzAzY2QzYjIyNDY0NjI0MWY4MjA4ZmY0M2E0
|
|
15
|
+
NDRmMjgyZjg2NzgzZjI2NDBjMGEyMzhlMjQ1NmYzNWExMjFmOGE=
|
|
@@ -23,7 +23,7 @@ namespace :lets_encrypt do
|
|
|
23
23
|
task :certonly do
|
|
24
24
|
on release_roles fetch(:lets_encrypt_roles) do
|
|
25
25
|
# execute "./certbot-auto certonly --webroot -w /var/www/example -d example.com -d www.example.com -w /var/www/thing -d thing.is -d m.thing.is"
|
|
26
|
-
execute "#{ fetch(:lets_encrypt_path) }/certbot-auto certonly --webroot -w #{current_path}/public#{ fetch(:nginx_major_domain, false) ? " -d #{fetch(:nginx_major_domain).to_s.gsub(/^\*?\./, "")} -d www.#{fetch(:nginx_major_domain).to_s.gsub(/^\*?\./, "")}" : ""} #{ Array(fetch(:nginx_domains)).map{ |d| "-d #{d.gsub(/^\*?\./, "")} -d www.#{d.gsub(/^\*?\./, "")}" }.join(" ") }"
|
|
26
|
+
execute :sudo, "#{ fetch(:lets_encrypt_path) }/certbot-auto certonly --webroot -w #{current_path}/public#{ fetch(:nginx_major_domain, false) ? " -d #{fetch(:nginx_major_domain).to_s.gsub(/^\*?\./, "")} -d www.#{fetch(:nginx_major_domain).to_s.gsub(/^\*?\./, "")}" : ""} #{ Array(fetch(:nginx_domains)).map{ |d| "-d #{d.gsub(/^\*?\./, "")} -d www.#{d.gsub(/^\*?\./, "")}" }.join(" ") }"
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -32,7 +32,7 @@ namespace :lets_encrypt do
|
|
|
32
32
|
## http://serverfault.com/a/825032
|
|
33
33
|
task :auto_renew do
|
|
34
34
|
on release_roles fetch(:lets_encrypt_roles) do
|
|
35
|
-
execute "echo '42 0,12 * * * root #{ fetch(:lets_encrypt_path) }/certbot-auto renew --quiet' | cat > /etc/cron.d/lets_encrypt"
|
|
35
|
+
execute :sudo, "echo '42 0,12 * * * root #{ fetch(:lets_encrypt_path) }/certbot-auto renew --quiet' | cat > /etc/cron.d/lets_encrypt"
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ namespace :lets_encrypt do
|
|
|
40
40
|
desc "Install certbot LetsEncrypt"
|
|
41
41
|
task :test_renew do
|
|
42
42
|
on release_roles fetch(:lets_encrypt_roles) do
|
|
43
|
-
execute "#{ fetch(:lets_encrypt_path) }/certbot-auto renew --dry-run"
|
|
43
|
+
execute :sudo, "#{ fetch(:lets_encrypt_path) }/certbot-auto renew --dry-run"
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|