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