Subversion-Projekte lars-tiefland.openvz_admin

Revision

Revision 53 | Revision 55 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 53 Revision 54
Zeile 157... Zeile 157...
157
			$db->beginTransaction();
157
			$db->beginTransaction();
158
			$sql="INSERT into vservers (v_id, hn_id, v_name, v_dist) VALUES ($this->v_id, $this->hn_id, '$this->name', $this->dist_id)";
158
			$sql="INSERT into vservers (v_id, hn_id, v_name, v_dist) VALUES ($this->v_id, $this->hn_id, '$this->name', $this->dist_id)";
159
			$res=$db->query($sql);
159
			$res=$db->query($sql);
160
			if(!PEAR::isError($res))
160
			if(!PEAR::isError($res))
161
			{
161
			{
162
				$cmd="ssh root@mainframe vzctl create $this->v_id --hostname $v_name --ostemplate $d_template --config vps.$d_name --ipadd ".ip["ip"];
162
				$cmd="ssh root@mainframe vzctl create $this->v_id --hostname $v_name --ostemplate $d_template --config vps.$d_name --ipadd ".$ip["ip"];
163
				exec($cmd,$out,$ret);
163
				exec($cmd,$out,$ret);
164
				if(!$ret)
164
				if(!$ret)
165
				{
165
				{
166
					$smarty->assign("meld","vServer erfolgreich angelegt!");
166
					$smarty->assign("meld","vServer erfolgreich angelegt!");
167
					$smarty->assign("error", false);
167
					$smarty->assign("error", false);