diff --git a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh index 9f3e9579..d896dda1 100755 --- a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh +++ b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container-new.sh @@ -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 @@ -356,4 +357,4 @@ if [[ -n "${CMD[*]}" ]]; then tmux new-session -d -s "$CONTAINER_NAME" "$QUOTED_CMD" fi -exit 0 \ No newline at end of file +exit 0 diff --git a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh index 89eefbca..cfd76b4b 100755 --- a/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh +++ b/container-creation/intern-phxdc-pve1/var-lib-vz-snippets/create-container.sh @@ -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