<?php
/*
 * Reset a password
 *
 * arg0 = baseurl
 */
class BaseurlShell extends AppShell {

	public $uses = array('Server');

	public function main() {
		$baseurl = $this->args[0];
		$this->Server->serverSettingsSaveValue('MISP.baseurl', $baseurl);
		echo 'Baseurl updated. Have a very safe and productive day.', PHP_EOL;
	}
}

Add a baseurl changer for shell scripts
new: Add a baseurl changer for shell scripts

- cake /var/www/MISP/app/Console Baseurl [new baseurl]
