From 649a75e459317214ee642aced8c392b0cfa408c0 Mon Sep 17 00:00:00 2001 From: Maxime Poulin Date: Thu, 23 Jul 2015 10:14:39 -0400 Subject: [PATCH] File permissions now persits --- bin/blackbox_postdeploy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/blackbox_postdeploy b/bin/blackbox_postdeploy index 554236c..a095c90 100755 --- a/bin/blackbox_postdeploy +++ b/bin/blackbox_postdeploy @@ -30,8 +30,9 @@ echo '========== Decrypting new/changed files: START' while IFS= read <&99 -r unencrypted_file; do encrypted_file=$(get_encrypted_filename "$unencrypted_file") decrypt_file_overwrite "$encrypted_file" "$unencrypted_file" - chmod g+r "$unencrypted_file" + chmod --reference "$encrypted_file" "$unencrypted_file" if [[ ! -z "$FILE_GROUP" ]]; then + chmod g+r "$unencrypted_file" chgrp "$FILE_GROUP" "$unencrypted_file" fi done 99<"$BB_FILES"