Restrict file access before writing secrets

This commit is contained in:
Martin Puppe 2021-02-08 11:04:21 +01:00
parent b5a6830523
commit fb34a0834c

View file

@ -99,6 +99,8 @@ rm -rf "$basedir"/*
while read name; do while read name; do
fullpath="$basedir/$name" fullpath="$basedir/$name"
touch "$fullpath"
chmod 600 "$fullpath"
read size read size
head --bytes="$size" - > "$fullpath" head --bytes="$size" - > "$fullpath"
read owner read owner