|
|
|
@ -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 |
|
|
|
|