protected $_params = [];
- public function __construct($entry, $version, $action, $user=null, $params = [])
+ public function __construct($entry, $version, $action, $user = null, $params = [])
{
parent::__construct($entry, $action, $user);
$this->_params = $params;
if (!$server) {
throw new \Exception('No valid server defined for external installation');
}
- if (!$dest) {
- throw new \Exception('No path defined for external server installation');
+ if (!$dest && !$server->allows_root) {
+ throw new \Exception('No path defined for external server installation : this server does not allow installing on root');
}
$translateVariables['server'] = $server->name;