Skip to content

Commit

Permalink
fix: template old file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyves committed Oct 17, 2018
1 parent e2533df commit 17de45e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions siberian/app/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ protected function _initLogger()
mkdir(Core_Model_Directory::getBasePathTo('var/log'), 0777, true);
}

// Clean-up old template installer!
$tmp = Core_Model_Directory::getBasePathTo('var/tmp/template.install.php');
if (is_file($tmp)) {
unlink($tmp);
}

$writer = new Zend_Log_Writer_Stream(Core_Model_Directory::getBasePathTo('var/log/output.log'));
$logger = new Siberian_Log($writer);
Zend_Registry::set('logger', $logger);
Expand Down

0 comments on commit 17de45e

Please sign in to comment.