Update ha_venv_container.sh

This commit is contained in:
tteck 2021-08-24 07:27:14 -04:00 committed by GitHub
parent 2b554c11c9
commit 5c16ad59c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -137,10 +137,10 @@ else
mkfs.ext4 $(pvesm path $ROOTFS) &>/dev/null mkfs.ext4 $(pvesm path $ROOTFS) &>/dev/null
fi fi
ARCH=$(dpkg --print-architecture) ARCH=$(dpkg --print-architecture)
HOSTNAME=havenv HOSTNAME=homeassistantvenv
TEMPLATE_STRING="local:vztmpl/${TEMPLATE}" TEMPLATE_STRING="local:vztmpl/${TEMPLATE}"
pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1 \ pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1 \
-hostname $HOSTNAME -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 \ -hostname $HOSTNAME -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 -cores 2 -memory 2048 \
-ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null
# Set container timezone to match host # Set container timezone to match host