lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 0367668 5/6: Say when umask is overridden


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 0367668 5/6: Say when umask is overridden
Date: Thu, 5 Mar 2020 11:31:47 -0500 (EST)

branch: master
commit 03676684a0b0c5856dd10cf9351ba71cd5f00f56
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Say when umask is overridden
    
    Such a serious change calls for notification.
---
 install_redhat.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/install_redhat.sh b/install_redhat.sh
index c53658e..18f33bc 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -27,7 +27,10 @@ stamp0=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
 echo "Started: $stamp0"
 
 # Override any too-restrictive corporate default (e.g., 077).
-umask 022
+if [ "$(umask)" -ne 022 ]; then
+  printf "Overriding bogus umask %s\n" "$(umask)"
+  umask 022
+fi
 
 # Configure some important variables dynamically.
 export NORMAL_USER



reply via email to

[Prev in Thread] Current Thread [Next in Thread]