mirror of https://github.com/tteck/Proxmox.git
Update node-red_container.sh
This commit is contained in:
parent
9b7627006a
commit
7bdd6dfbb0
|
@ -68,7 +68,6 @@ pushd $TEMP_DIR >/dev/null
|
||||||
wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/node-red_setup.sh
|
wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/node-red_setup.sh
|
||||||
|
|
||||||
# Detect modules and automatically load at boot
|
# Detect modules and automatically load at boot
|
||||||
#load_module aufs
|
|
||||||
load_module overlay
|
load_module overlay
|
||||||
|
|
||||||
# Select storage location
|
# Select storage location
|
||||||
|
@ -130,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'."
|
||||||
|
@ -141,7 +140,7 @@ ARCH=$(dpkg --print-architecture)
|
||||||
HOSTNAME=nodered
|
HOSTNAME=nodered
|
||||||
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 1 -memory 1024 \
|
||||||
-ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null
|
-ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue