From 713e1462dd453cebb81f2ad4a15d23a18f0b4eb6 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 11 May 2012 00:10:18 +0200 Subject: [PATCH] Add Container::SetRootPassword function --- frontend/classes/class.container.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/classes/class.container.php b/frontend/classes/class.container.php index e129906..cfc368a 100644 --- a/frontend/classes/class.container.php +++ b/frontend/classes/class.container.php @@ -627,6 +627,13 @@ class Container extends CPHPDatabaseRecordClass } } + public function SetRootPassword($password) + { + $this->SetOptions(array( + 'userpasswd' => "root:{$password}" + )); + } + public function EnableTunTap() { // TODO: Finish EnableTunTap function, check whether tun module is available on host