Fixed mariadb and main install script. Fixed nginx bug