reverting shred on a file that is not a secret to be shredded

This commit is contained in:
Thierry Laurion 2019-02-21 20:17:16 -05:00
parent 14c76d062c
commit 9fbfb41a71
No known key found for this signature in database
GPG Key ID: 79C78E6659DB658F

View File

@ -235,7 +235,7 @@ replace_config() {
# then copy any remaining settings from the existing config file, minus the option you changed
grep -v "^export ${CONFIG_OPTION}=" ${CONFIG_FILE} | grep -v "^${CONFIG_OPTION}=" >> ${CONFIG_FILE}.tmp || true
sort ${CONFIG_FILE}.tmp | uniq > ${CONFIG_FILE}
shred -n 10 -z -u ${CONFIG_FILE}.tmp
rm -f ${CONFIG_FILE}.tmp
}
combine_configs() {
cat /etc/config* > /tmp/config