import jingrow


def execute():
	jingrow.reload_doctype("Press Settings")
	settings = jingrow.get_single("Press Settings")
	try:
		settings.get_password("jcloude_monitoring_password")
	except jingrow.AuthenticationError:
		settings.jcloude_monitoring_password = jingrow.generate_hash()
		settings.save()
