Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ if [ -f "/var/lib/vz/snippets/container-public-keys/$PUB_FILE" ]; then
fi
fi

run_pct_exec $CONTAINER_ID bash -c 'passwd -d root; passwd -l root' > /dev/null 2>&1
run_pct_exec $CONTAINER_ID passwd -d root > /dev/null 2>&1
run_pct_exec $CONTAINER_ID passwd -l root > /dev/null 2>&1

CONTAINER_IP=""
attempts=0
Expand Down Expand Up @@ -356,4 +357,4 @@ if [[ -n "${CMD[*]}" ]]; then
tmux new-session -d -s "$CONTAINER_NAME" "$QUOTED_CMD"
fi

exit 0
exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ if [ -f "/var/lib/vz/snippets/container-public-keys/$PUB_FILE" ]; then
fi

# Generate a random root password for the container
pct exec $CONTAINER_ID -- bash -c 'passwd -d root; passwd -l root' > /dev/null 2>&1
pct exec $CONTAINER_ID -- passwd -d root > /dev/null 2>&1
pct exec $CONTAINER_ID -- passwd -l root > /dev/null 2>&1

CONTAINER_IP=""
attempts=0
Expand Down