Update pve7_zigbee2mqtt_container.sh

This commit is contained in:
tteck 2021-08-12 13:55:53 -04:00 committed by GitHub
parent 3912faf539
commit 364fcffd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ ROOTFS=${STORAGE}:${DISK_REF-}${DISK}
# Create LXC # Create LXC
msg "Creating LXC container..." msg "Creating LXC container..."
DISK_SIZE=2G DISK_SIZE=4G
pvesm alloc $STORAGE $CTID $DISK $DISK_SIZE --format ${DISK_FORMAT:-raw} >/dev/null pvesm alloc $STORAGE $CTID $DISK $DISK_SIZE --format ${DISK_FORMAT:-raw} >/dev/null
if [ "$STORAGE_TYPE" == "zfspool" ]; then if [ "$STORAGE_TYPE" == "zfspool" ]; then
warn "Some containers may not work properly due to ZFS not supporting 'fallocate'." warn "Some containers may not work properly due to ZFS not supporting 'fallocate'."
@ -140,7 +140,7 @@ ARCH=$(dpkg --print-architecture)
HOSTNAME=zigbee2mqtt HOSTNAME=zigbee2mqtt
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 1024 \
-ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null
# Modify LXC permissions to support Zigbee Sticks # Modify LXC permissions to support Zigbee Sticks