2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-12-14 15:03:12 +00:00

BREAKING CHANGE: remove root default password, configure it only if provided (close #7)

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2022-09-12 11:19:51 +02:00
parent 7ad6343e6f
commit 3940cd8975
8 changed files with 17 additions and 18 deletions

View File

@@ -72,9 +72,6 @@ func (d Dockerfile) Render(w io.Writer) error {
}
func NewDockerfile(release OSRelease, img, password string, networkManager NetworkManager) (Dockerfile, error) {
if password == "" {
password = "root"
}
d := Dockerfile{Release: release, Image: img, Password: password, NetworkManager: networkManager}
var net NetworkManager
switch release.ID {