@Timur my advice is for you is to build a new Ubuntu 16.04 server (or debian 8 or Centos 7 or Fedora 25) and install fog 1.3.0.

Here is a resource:
https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk

Also:
https://wiki.fogproject.org/wiki/index.php?title=CentOS_7