mirror of https://github.com/tteck/Proxmox.git
brackets
This commit is contained in:
parent
4f23336385
commit
d6ba051341
|
@ -347,16 +347,16 @@ build_container() {
|
||||||
fi
|
fi
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
pushd $TEMP_DIR >/dev/null
|
pushd $TEMP_DIR >/dev/null
|
||||||
export FUNCTIONS_FILE_PATH=$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/alpine-install.func)
|
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/alpine-install.func)"
|
||||||
export tz=$timezone
|
export tz="$timezone"
|
||||||
export DISABLEIPV6=$DISABLEIP6
|
export DISABLEIPV6="$DISABLEIP6"
|
||||||
export APPLICATION=$APP
|
export APPLICATION="$APP"
|
||||||
export VERBOSE=$VERB
|
export VERBOSE="$VERB"
|
||||||
export SSH_ROOT=${SSH}
|
export SSH_ROOT="${SSH}"
|
||||||
export CTID=$CT_ID
|
export CTID=$CT_ID"
|
||||||
export PCT_OSTYPE=$var_os
|
export PCT_OSTYPE="$var_os"
|
||||||
export PCT_OSVERSION=$var_version
|
export PCT_OSVERSION="$var_version"
|
||||||
export PCT_DISK_SIZE=$DISK_SIZE
|
export PCT_DISK_SIZE="$DISK_SIZE"
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
|
|
@ -346,16 +346,16 @@ build_container() {
|
||||||
fi
|
fi
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
pushd $TEMP_DIR >/dev/null
|
pushd $TEMP_DIR >/dev/null
|
||||||
export FUNCTIONS_FILE_PATH=$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/install.func)
|
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/install.func)"
|
||||||
export tz=$timezone
|
export tz="$timezone"
|
||||||
export DISABLEIPV6=$DISABLEIP6
|
export DISABLEIPV6="$DISABLEIP6"
|
||||||
export APPLICATION=$APP
|
export APPLICATION="$APP"
|
||||||
export VERBOSE=$VERB
|
export VERBOSE="$VERB"
|
||||||
export SSH_ROOT=${SSH}
|
export SSH_ROOT="${SSH}"
|
||||||
export CTID=$CT_ID
|
export CTID="$CT_ID"
|
||||||
export PCT_OSTYPE=$var_os
|
export PCT_OSTYPE="$var_os"
|
||||||
export PCT_OSVERSION=$var_version
|
export PCT_OSVERSION="$var_version"
|
||||||
export PCT_DISK_SIZE=$DISK_SIZE
|
export PCT_DISK_SIZE="$DISK_SIZE"
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
@ -369,8 +369,8 @@ build_container() {
|
||||||
$PW
|
$PW
|
||||||
"
|
"
|
||||||
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
|
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
|
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
||||||
|
if [ "$CT_TYPE" == "0" ]; then
|
||||||
cat <<EOF >>$LXC_CONFIG
|
cat <<EOF >>$LXC_CONFIG
|
||||||
lxc.cgroup2.devices.allow: a
|
lxc.cgroup2.devices.allow: a
|
||||||
lxc.cap.drop:
|
lxc.cap.drop:
|
||||||
|
@ -381,6 +381,11 @@ lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=
|
||||||
lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
|
lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
|
||||||
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
|
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
|
||||||
lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file
|
lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
cat <<EOF >>$LXC_CONFIG
|
||||||
|
lxc.cgroup2.devices.allow: a
|
||||||
|
lxc.cap.drop:
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
msg_info "Starting LXC Container"
|
msg_info "Starting LXC Container"
|
||||||
|
|
|
@ -354,17 +354,17 @@ build_container() {
|
||||||
fi
|
fi
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
pushd $TEMP_DIR >/dev/null
|
pushd $TEMP_DIR >/dev/null
|
||||||
export FUNCTIONS_FILE_PATH=$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/install.func)
|
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/install.func)"
|
||||||
export tz=$timezone
|
export tz="$timezone"
|
||||||
export ST=$FUSE
|
export ST="$FUSE"
|
||||||
export DISABLEIPV6=$DISABLEIP6
|
export DISABLEIPV6="$DISABLEIP6"
|
||||||
export APPLICATION=$APP
|
export APPLICATION="$APP"
|
||||||
export VERBOSE=$VERB
|
export VERBOSE="$VERB"
|
||||||
export SSH_ROOT=${SSH}
|
export SSH_ROOT="${SSH}"
|
||||||
export CTID=$CT_ID
|
export CTID="$CT_ID"
|
||||||
export PCT_OSTYPE=$var_os
|
export PCT_OSTYPE="$var_os"
|
||||||
export PCT_OSVERSION=$var_version
|
export PCT_OSVERSION="$var_version"
|
||||||
export PCT_DISK_SIZE=$DISK_SIZE
|
export PCT_DISK_SIZE="$DISK_SIZE"
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
|
|
@ -358,15 +358,15 @@ build_container() {
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
pushd $TEMP_DIR >/dev/null
|
pushd $TEMP_DIR >/dev/null
|
||||||
export FUNCTIONS_FILE_PATH=$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/install.func)
|
export FUNCTIONS_FILE_PATH=$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/install.func)
|
||||||
export tz=$timezone
|
export tz="$timezone"
|
||||||
export DISABLEIPV6=$DISABLEIP6
|
export DISABLEIPV6="$DISABLEIP6"
|
||||||
export APPLICATION=$APP
|
export APPLICATION="$APP"
|
||||||
export VERBOSE=$VERB
|
export VERBOSE="$VERB"
|
||||||
export SSH_ROOT=${SSH}
|
export SSH_ROOT="${SSH}"
|
||||||
export CTID=$CT_ID
|
export CTID="$CT_ID"
|
||||||
export PCT_OSTYPE=$var_os
|
export PCT_OSTYPE="$var_os"
|
||||||
export PCT_OSVERSION=$var_version
|
export PCT_OSVERSION="$var_version"
|
||||||
export PCT_DISK_SIZE=$DISK_SIZE
|
export PCT_DISK_SIZE="$DISK_SIZE"
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
@ -381,9 +381,9 @@ build_container() {
|
||||||
"
|
"
|
||||||
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
|
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
|
||||||
|
|
||||||
|
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
||||||
if [ "$CT_TYPE" == "0" ]; then
|
if [ "$CT_TYPE" == "0" ]; then
|
||||||
if [[ "$APP" != "Emby" && "$APP" != "Jellyfin" && "$APP" != "Plex" ]]; then
|
if [[ "$APP" != "Emby" && "$APP" != "Jellyfin" && "$APP" != "Plex" ]]; then
|
||||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
|
||||||
cat <<EOF >>$LXC_CONFIG
|
cat <<EOF >>$LXC_CONFIG
|
||||||
lxc.cgroup2.devices.allow: a
|
lxc.cgroup2.devices.allow: a
|
||||||
lxc.cap.drop:
|
lxc.cap.drop:
|
||||||
|
@ -400,8 +400,9 @@ EOF
|
||||||
|
|
||||||
if [ "$CT_TYPE" == "0" ]; then
|
if [ "$CT_TYPE" == "0" ]; then
|
||||||
if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" ]]; then
|
if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" ]]; then
|
||||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
|
||||||
cat <<EOF >>$LXC_CONFIG
|
cat <<EOF >>$LXC_CONFIG
|
||||||
|
lxc.cgroup2.devices.allow: a
|
||||||
|
lxc.cap.drop:
|
||||||
lxc.cgroup2.devices.allow: c 226:0 rwm
|
lxc.cgroup2.devices.allow: c 226:0 rwm
|
||||||
lxc.cgroup2.devices.allow: c 226:128 rwm
|
lxc.cgroup2.devices.allow: c 226:128 rwm
|
||||||
lxc.cgroup2.devices.allow: c 29:0 rwm
|
lxc.cgroup2.devices.allow: c 29:0 rwm
|
||||||
|
|
Loading…
Reference in New Issue