From 9693efc1079c2a24812aea59253ac55b68faffbb Mon Sep 17 00:00:00 2001 From: Sthopeless Date: Fri, 7 May 2021 15:29:31 +0200 Subject: [PATCH] Initial commit --- create_container.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/create_container.sh b/create_container.sh index 16dbd01..fd697d2 100644 --- a/create_container.sh +++ b/create_container.sh @@ -139,13 +139,12 @@ else fi ARCH=$(dpkg --print-architecture) HOSTNAME=Gitlab -RAM="4098" -SWAP="2048" +RAM=4098 +SWAP=2048 TEMPLATE_STRING="local:vztmpl/${TEMPLATE}" pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1 \ - -hostname $HOSTNAME -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 \ - -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE, \ - -memory=$RAM, -swap=$SWAP >/dev/null + -hostname $HOSTNAME --memory=$RAM --swap=$SWAP -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 \ + -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE, >/dev/null # Modify LXC permissions to support Docker LXC_CONFIG=/etc/pve/lxc/${CTID}.conf