capistrano-secure-permissions 0.2.4 → 0.3.0
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 +4 -4
- data/VERSION +1 -1
- data/capistrano-secure-permissions.gemspec +2 -2
- data/lib/capistrano/tasks/secure-permissions.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98f847661994b1304b5c6f1ac378373a91817c93
|
4
|
+
data.tar.gz: d316b39c9817ed28a4780d370ef36da559d8a19a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e56953b826745b8299894318d06271595a291b428629d97a0fec7967485254eee46bd7743f65c2628ab6e2e901b0db746314405d557883b449fb391beb94be16
|
7
|
+
data.tar.gz: 615d99323853ed04b6e627c795483bc7c778c957e40d8c400ebd245de2d2fb0c8485da6e09a328ba2d724c793903a101b943c2f3edf71a9f9f08b65be71558e9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: capistrano-secure-permissions 0.
|
5
|
+
# stub: capistrano-secure-permissions 0.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "capistrano-secure-permissions"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -11,7 +11,7 @@ namespace :deploy do
|
|
11
11
|
# Set all except public, tmp, and log readable by app_user.
|
12
12
|
execute :find, release_path, '-regex', '\./\(public\|tmp\|log\)', '-prune', '-o', '-user', deploy_user, '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{app_user}:rX"
|
13
13
|
# Set permissions for files in public, readable på web_user and writable by app_user.
|
14
|
-
execute :find, "#{release_path}/public", '-user', deploy_user, '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{web_user}:rX,u:#{app_user}:rwX"
|
14
|
+
execute :find, '-L', "#{release_path}/public", '-user', deploy_user, '-not', '-type', 'l', '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{web_user}:rX,u:#{app_user}:rwX"
|
15
15
|
# Set defaults for directories in public (that is permissions for new files made by the app).
|
16
16
|
execute :find, "#{release_path}/public", '-user', deploy_user, '-type', 'd', '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "d:u:#{web_user}:rX,d:u:#{app_user}:rwX"
|
17
17
|
# Set log and tmp writable by app_user.
|