Skip to content

Commit fa730a1

Browse files
committed
Clearer debug and comments on set_ownership_and_permissions()
1 parent c342cb3 commit fa730a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/functions.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ function set_ownership_and_permissions {
234234
return 1
235235
fi
236236

237+
[[ "$(lc $DEBUG)" == true ]] && echo "Debug: checking $path ownership and permissions."
238+
237239
# Find the user numeric ID if the FILES_UID environment variable isn't numeric.
238240
if [[ "$user" =~ ^[0-9]+$ ]]; then
239241
user_num="$user"
@@ -278,7 +280,7 @@ function set_ownership_and_permissions {
278280
fi
279281
# If the path is a file, check and modify permissions if required.
280282
elif [[ -f "$path" ]]; then
281-
# Use different permissions for private files (private keys and ACME account keys) ...
283+
# Use different permissions for private files (private keys and ACME account files) ...
282284
if [[ "$path" =~ ^.*(default\.key|key\.pem|\.json)$ ]]; then
283285
if [[ "$(stat -c %a "$path")" != "$f_perms" ]]; then
284286
[[ "$(lc $DEBUG)" == true ]] && echo "Debug: setting $path permissions to $f_perms."

0 commit comments

Comments
 (0)