]> git.ipfire.org Git - ipfire-2.x.git/commit
ids-functions.pl: Add function to create empty files
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 24 Aug 2018 05:37:10 +0000 (07:37 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 24 Aug 2018 05:37:10 +0000 (07:37 +0200)
commit308ba5e74c27e50e9fda4278749256d3ff541d5e
tree717af401e6005793f7c558678456b1ec5b647d61
parentcb52183c6a311d7413c286f73895b52a8e2e3a57
ids-functions.pl: Add function to create empty files

This generic function can be used to create any kind of emtpy files -
it just requires the full path and filename to work.

If the specified file exists at calltime, the function will abort
to prevent from overwriting existing files and content.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl