]> kaliko git repositories - mpd-sima.git/blobdiff - sima/launch.py
Update file access controls
[mpd-sima.git] / sima / launch.py
index 4cdcae03ef49d8e5ff6120e6d388b36274661221..27e9d6bfdab60e75a2832a2b8e3683b7d341adf7 100644 (file)
@@ -109,12 +109,10 @@ def start(sopt, restart=False):
         if cmd == "create-db":
             if not isfile(db_file):
                 logger.info('Creating database in "%s"', db_file)
-                open(db_file, 'a').close()  # TODO: to remove with new simadb in v0.18
                 SimaDB(db_path=db_file).create_db()
-                if sopt.options.get('create_db', None):
-                    logger.info('Done, bye...')
             else:
                 logger.info('Database already there, not overwriting %s', db_file)
+            logger.info('Done, bye...')
             sys.exit(0)
         if cmd == "purge-history":
             db_file = config.get('sima', 'db_file')