|
|
@ -138,7 +138,7 @@ export PCT_OPTIONS="
|
|
|
|
-memory 512
|
|
|
|
-memory 512
|
|
|
|
-unprivileged ${IM}
|
|
|
|
-unprivileged ${IM}
|
|
|
|
"
|
|
|
|
"
|
|
|
|
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/unpriv/create_lxc.sh)" || exit
|
|
|
|
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
|
|
|
|
|
|
|
|
|
|
|
|
STORAGE_TYPE=$(pvesm status -storage $(pct config $CTID | grep rootfs | awk -F ":" '{print $2}') | awk 'NR>1 {print $2}')
|
|
|
|
STORAGE_TYPE=$(pvesm status -storage $(pct config $CTID | grep rootfs | awk -F ":" '{print $2}') | awk 'NR>1 {print $2}')
|
|
|
|
if [ "$STORAGE_TYPE" == "zfspool" ]; then
|
|
|
|
if [ "$STORAGE_TYPE" == "zfspool" ]; then
|
|
|
@ -151,7 +151,7 @@ echo -e "${CM}${CL} \r"
|
|
|
|
|
|
|
|
|
|
|
|
alias lxc-cmd="lxc-attach -n $CTID --"
|
|
|
|
alias lxc-cmd="lxc-attach -n $CTID --"
|
|
|
|
|
|
|
|
|
|
|
|
lxc-cmd bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/dev/unpriv/adguard-install.sh)" || exit
|
|
|
|
lxc-cmd bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/dev/setup/adguard-install.sh)" || exit
|
|
|
|
|
|
|
|
|
|
|
|
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
|
|
|
|
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
|
|
|
|
|
|
|
|
|
|
|
|