Skip to content

Commit 3e65f38

Browse files
committed
Handle specifying a UMASK
1 parent 3a6e40e commit 3e65f38

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Keep file contents in sync with matching parameters in AWS Parameter Store
44
## Variables
55

66
- VERBOSE - enable more logging if set to 1
7+
- UMASK - optional UMASK value to use for files created
78
- FREQUENCY - How often to check for changes (in seconds). Default is 300 seconds (5 minutes).
89
- AWS_ACCESS_KEY_ID - The AWS Access Key Id value
910
- AWS_SECRET_ACCESS_KEY - The AWS Secret Access Key value

parameter_sync.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if [ "$VERBOSE" ]; then
66
VERBOSE='--verbose'
77
fi
88

9+
if [ "$UMASK" ]; then
10+
echo "setting given UMASK - all files and folders created will use a umask value of $UMASK"
11+
umask $UMASK
12+
fi
13+
914
CRED_FOLDER_PATH=/credentials
1015

1116
# Check for required ENV Variables

0 commit comments

Comments
 (0)