babeld: create the directory for the config file before writing to it

This commit is contained in:
Casper Meijn 2014-09-06 11:31:59 +02:00 committed by Baptiste Jonglez
parent 47f74d0041
commit 1a999ad02b
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ babel_config_cb() {
start() {
mkdir -p /var/lib
mkdir -p /var/etc
# Start by emptying the generated config file
>"$CONFIGFILE"
# First load the whole config file, without callbacks, so that we are