|
|
|
@ -1,21 +1,18 @@ |
|
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
|
# Copyright (c) 2021-2023 tteck |
|
|
|
|
# Author: romka777 (Roman Gogolev) |
|
|
|
|
# Author: tteck (tteckster) |
|
|
|
|
# License: MIT |
|
|
|
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE |
|
|
|
|
|
|
|
|
|
function header_info { |
|
|
|
|
clear |
|
|
|
|
cat <<"EOF" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__ __ __ __ |
|
|
|
|
/ / ____ _ _____ / /__ ___ / /_ / /_ |
|
|
|
|
__ / / / __ `/ / ___/ / //_/ / _ \ / __/ / __/ |
|
|
|
|
/ /_/ / / /_/ / / /__ / ,< / __// /_ / /_ |
|
|
|
|
\____/ \__,_/ \___/ /_/|_| \___/ \__/ \__/ |
|
|
|
|
|
|
|
|
|
__ __ __ __ |
|
|
|
|
/ /___ ______/ /_____v5/ /_/ /_ |
|
|
|
|
__ / / __ `/ ___/ //_/ _ \/ __/ __/ |
|
|
|
|
/ /_/ / /_/ / /__/ ,< / __/ /_/ /_ |
|
|
|
|
\____/\__,_/\___/_/|_|\___/\__/\__/ |
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
} |
|
|
|
@ -27,7 +24,6 @@ var_cpu="1" |
|
|
|
|
var_ram="512" |
|
|
|
|
var_os="debian" |
|
|
|
|
var_version="11" |
|
|
|
|
var_repo="tteck/Proxmox" |
|
|
|
|
NSAPP=$(echo ${APP,,} | tr -d ' ') |
|
|
|
|
var_install="${NSAPP}-v5-install" |
|
|
|
|
INTEGER='^[0-9]+$' |
|
|
|
@ -86,7 +82,7 @@ fi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function default_settings() { |
|
|
|
|
echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL}" |
|
|
|
|
echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" |
|
|
|
|
CT_TYPE="1" |
|
|
|
|
echo -e "${DGN}Using Root Password: ${BGN}Automatic Login${CL}" |
|
|
|
|
PW="" |
|
|
|
@ -381,11 +377,11 @@ export PCT_OPTIONS=" |
|
|
|
|
-unprivileged $CT_TYPE |
|
|
|
|
$PW |
|
|
|
|
" |
|
|
|
|
bash -c "$(wget -qLO - https://raw.githubusercontent.com/$var_repo/main/ct/create_lxc.sh)" || exit |
|
|
|
|
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit |
|
|
|
|
msg_info "Starting LXC Container" |
|
|
|
|
pct start $CTID |
|
|
|
|
msg_ok "Started LXC Container" |
|
|
|
|
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/$var_repo/main/install/$var_install.sh)" || exit |
|
|
|
|
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/pull-requests/install/$var_install.sh)" || exit |
|
|
|
|
IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) |
|
|
|
|
pct set $CTID -description "# ${APP} LXC |
|
|
|
|
### https://tteck.github.io/Proxmox/ |
|
|
|
|