public static function permissionDirs(Event $event)
    {
        $options = self::getOptions($event);
        $appDir = $options['ppi-app-dir'];
        $logsDir = realpath($appDir) . '/logs';
        $cacheDir = realpath($appDir) . '/cache';
        foreach(array($logsDir, $cacheDir) as $dir) {
            if(is_dir($dir) && is_writable($dir)) {
                @chmod($dir, 0777);
            }
        }

    }