]> git.ipfire.org Git - people/ms/ddns.git/commit
Perform lazy initialization of the database
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Apr 2015 11:18:07 +0000 (13:18 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Apr 2015 11:18:07 +0000 (13:18 +0200)
commit63e16feedea3639ef1f21fecbff9ed2ae256728b
treef9209c9c4bfd66f86c878dadae4f615dcfc67530
parent9cfcaa8a61c57e2afb7cd9477110d009c9e3944b
Perform lazy initialization of the database

The database will only be initialized when it is actually
needed. That makes starting up ddns a bit faster and allows
us to execute it as non-root for simple commands like
"list-providers".

If the database path is not writable at all, the database
feature is disable and an error message is logged. This
will hopefully help us to perform the DNS update even when
there is a local misconfiguration.
src/ddns/database.py