mirror of https://github.com/tteck/Proxmox.git
				
				
				
			indentation
This commit is contained in:
		
							parent
							
								
									e52813fb32
								
							
						
					
					
						commit
						602d4496f8
					
				| 
						 | 
				
			
			@ -370,9 +370,9 @@ build_container() {
 | 
			
		|||
    $PW
 | 
			
		||||
  "
 | 
			
		||||
  bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
 | 
			
		||||
if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
  if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
    LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
    cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
lxc.cgroup2.devices.allow: a
 | 
			
		||||
lxc.cap.drop:
 | 
			
		||||
lxc.cgroup2.devices.allow: c 188:* rwm
 | 
			
		||||
| 
						 | 
				
			
			@ -383,7 +383,7 @@ lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create=
 | 
			
		|||
lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file
 | 
			
		||||
lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file
 | 
			
		||||
EOF
 | 
			
		||||
fi
 | 
			
		||||
  fi
 | 
			
		||||
  msg_info "Starting LXC Container"
 | 
			
		||||
  pct start $CTID
 | 
			
		||||
  msg_ok "Started LXC Container"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -369,9 +369,9 @@ build_container() {
 | 
			
		|||
    $PW
 | 
			
		||||
  "
 | 
			
		||||
  bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
 | 
			
		||||
if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
  if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
    LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
    cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
lxc.cgroup2.devices.allow: a
 | 
			
		||||
lxc.cap.drop:
 | 
			
		||||
lxc.cgroup2.devices.allow: c 188:* rwm
 | 
			
		||||
| 
						 | 
				
			
			@ -382,7 +382,7 @@ lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create=
 | 
			
		|||
lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file
 | 
			
		||||
lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file
 | 
			
		||||
EOF
 | 
			
		||||
fi
 | 
			
		||||
  fi
 | 
			
		||||
  msg_info "Starting LXC Container"
 | 
			
		||||
  pct start $CTID
 | 
			
		||||
  msg_ok "Started LXC Container"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -381,10 +381,10 @@ build_container() {
 | 
			
		|||
  "
 | 
			
		||||
  bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
 | 
			
		||||
 | 
			
		||||
if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
  if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
    if [[ "$APP" != "Emby" && "$APP" != "Jellyfin" && "$APP" != "Plex" ]]; then
 | 
			
		||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
      LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
      cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
lxc.cgroup2.devices.allow: a
 | 
			
		||||
lxc.cap.drop:
 | 
			
		||||
lxc.cgroup2.devices.allow: c 188:* rwm
 | 
			
		||||
| 
						 | 
				
			
			@ -396,12 +396,12 @@ lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=
 | 
			
		|||
lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file
 | 
			
		||||
EOF
 | 
			
		||||
    fi
 | 
			
		||||
fi
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
  if [ "$CT_TYPE" == "0" ]; then
 | 
			
		||||
    if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" ]]; then
 | 
			
		||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
      LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
 | 
			
		||||
      cat <<EOF >>$LXC_CONFIG
 | 
			
		||||
lxc.cgroup2.devices.allow: c 226:0 rwm
 | 
			
		||||
lxc.cgroup2.devices.allow: c 226:128 rwm
 | 
			
		||||
lxc.cgroup2.devices.allow: c 29:0 rwm
 | 
			
		||||
| 
						 | 
				
			
			@ -410,7 +410,7 @@ lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
 | 
			
		|||
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
 | 
			
		||||
EOF
 | 
			
		||||
    fi
 | 
			
		||||
fi
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  msg_info "Starting LXC Container"
 | 
			
		||||
  pct start $CTID
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue