Add OPACK_SSH_USER for weird cases like when OPACK_SYS_USER is already used by the base system
This commit is contained in:
@@ -48,7 +48,7 @@ define OPACK_PACKER_CONTENT =
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": ["cp /root/.ssh/authorized_keys /home/$(OPACK_SYS_USER)/.ssh/authorized_keys; chown $(OPACK_SYS_USER) /home/$(OPACK_SYS_USER)/.ssh/authorized_keys"]
|
||||
"inline": ["mkdir -p /home/$(OPACK_SYS_USER)/.ssh; cp /root/.ssh/authorized_keys /home/$(OPACK_SYS_USER)/.ssh/authorized_keys; chown $(OPACK_SYS_USER) /home/$(OPACK_SYS_USER)/.ssh/authorized_keys"]
|
||||
}
|
||||
],
|
||||
"post-processors": [ [
|
||||
|
||||
Reference in New Issue
Block a user