mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +00:00
reverting shred on a file that is not a secret to be shredded
This commit is contained in:
parent
14c76d062c
commit
9fbfb41a71
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user