public static function changeOwnerAndMode()
    {
        $dirs = \Deployer\get('change_owner_mode_dirs');

        if (empty($dirs)) {
            return;
        }

        foreach ($dirs as $key => $dirData) {
            $dir = $dirData['dir'];
            $owner = $dirData['owner'];
            $mode = $dirData['mode'];

            \Deployer\run("sudo chown -RH $owner $dir");
            \Deployer\run("sudo chmod -R $mode $dir");
        }
    }