Forum Offline, Trouble Updating

So, i tried some random commands but seems the one below fixed it

git config --system --add safe.directory /var/www/discourse