Change order of commands

restart nginx after everything is done