Initial commit
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
				
			|||||||
# Proxmox Debian LXC
 | 
					# Proxmox Debian LXC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
clear; bash -c "$(wget -qLO - https://github.com/Sthopeless/proxmox_debian_lxc/raw/main/create_container.sh)"
 | 
					clear; bash -c "$(wget -qLO - https://git.sthopeless.com/sthope/proxmox_debian_lxc/raw/branch/main/create_container.sh)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -65,7 +65,7 @@ TEMP_DIR=$(mktemp -d)
 | 
				
			|||||||
pushd $TEMP_DIR >/dev/null
 | 
					pushd $TEMP_DIR >/dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Download setup script
 | 
					# Download setup script
 | 
				
			||||||
wget -qL https://github.com/Sthopeless/proxmox_debian_lxc/raw/main/setup.sh
 | 
					wget -qL https://git.sthopeless.com/sthope/proxmox_debian_lxc/raw/branch/main/setup.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Detect modules and automatically load at boot
 | 
					# Detect modules and automatically load at boot
 | 
				
			||||||
load_module aufs
 | 
					load_module aufs
 | 
				
			||||||
@@ -138,7 +138,7 @@ 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=template
 | 
					HOSTNAME=Debian
 | 
				
			||||||
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 \
 | 
				
			||||||
@@ -171,6 +171,6 @@ info "Successfully created LXC to $CTID."
 | 
				
			|||||||
msg "
 | 
					msg "
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Enjoy!
 | 
					Enjoy!
 | 
				
			||||||
  http://${IP}
 | 
					      ${IP}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user