소스 검색

replace admin by cloud-init username

andre 4 년 전
부모
커밋
c426a4a729
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      proxmox_cloud-init.php

+ 1 - 0
proxmox_cloud-init.php

@@ -329,6 +329,7 @@ if (isset($userData['ssh_authorized_keys'])) {
 	$config['system']['user'][0]['authorizedkeys'] = base64_encode("$sshKeys");
 }
 $config['system']['hostname'] = $userData['hostname'];
+$config['system']['user'][0]['name'] = $userData['user'];
 $config['system']['user'][0]['bcrypt-hash'] = $userData['password'];
 // write the configuration
 write_config();