Skip to content

Commit 30c5115

Browse files
committed
Clearer debug and comments on set_ownership_and_permissions()
1 parent 5e818db commit 30c5115

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
@@ -285,6 +285,8 @@ function set_ownership_and_permissions {
285285
return 1
286286
fi
287287

288+
[[ "$(lc $DEBUG)" == true ]] && echo "Debug: checking $path ownership and permissions."
289+
288290
# Find the user numeric ID if the FILES_UID environment variable isn't numeric.
289291
if [[ "$user" =~ ^[0-9]+$ ]]; then
290292
user_num="$user"
@@ -329,7 +331,7 @@ function set_ownership_and_permissions {
329331
fi
330332
# If the path is a file, check and modify permissions if required.
331333
elif [[ -f "$path" ]]; then
332-
# Use different permissions for private files (private keys and ACME account keys) ...
334+
# Use different permissions for private files (private keys and ACME account files) ...
333335
if [[ "$path" =~ ^.*(default\.key|key\.pem|\.json)$ ]]; then
334336
if [[ "$(stat -c %a "$path")" != "$f_perms" ]]; then
335337
[[ "$(lc $DEBUG)" == true ]] && echo "Debug: setting $path permissions to $f_perms."

0 commit comments

Comments
 (0)