mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "0b4104441d0984922fa49f67a5c8c438a488eb70" and "606634b25a95a0ae42ddd9172790863acd77f1cd" have entirely different histories.
0b4104441d
...
606634b25a
|
@ -23,7 +23,7 @@ var_disk="2"
|
|||
var_cpu="1"
|
||||
var_ram="512"
|
||||
var_os="debian"
|
||||
var_version="12"
|
||||
var_version="11"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
@ -64,4 +64,4 @@ start
|
|||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
msg_ok "Completed Successfully!\n"
|
|
@ -23,7 +23,7 @@ var_disk="4"
|
|||
var_cpu="2"
|
||||
var_ram="2048"
|
||||
var_os="debian"
|
||||
var_version="12"
|
||||
var_version="11"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
|
|
@ -23,7 +23,7 @@ var_disk="4"
|
|||
var_cpu="2"
|
||||
var_ram="1024"
|
||||
var_os="debian"
|
||||
var_version="12"
|
||||
var_version="11"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
|
|
@ -23,7 +23,7 @@ var_disk="16"
|
|||
var_cpu="2"
|
||||
var_ram="2048"
|
||||
var_os="debian"
|
||||
var_version="12"
|
||||
var_version="11"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
|
|
@ -23,7 +23,7 @@ var_disk="8"
|
|||
var_cpu="2"
|
||||
var_ram="2048"
|
||||
var_os="debian"
|
||||
var_version="12"
|
||||
var_version="11"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
|
|
@ -24,6 +24,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing Bazarr"
|
||||
|
|
|
@ -49,6 +49,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Setting up Node.js Repository"
|
||||
|
|
|
@ -24,6 +24,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing Deluge"
|
||||
|
|
|
@ -26,7 +26,7 @@ $STD apt-get install -y \
|
|||
python3-dev \
|
||||
python3-pip \
|
||||
python3-venv
|
||||
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing ESPHome"
|
||||
|
|
|
@ -43,7 +43,7 @@ $STD apt-get install -y \
|
|||
python3-dev \
|
||||
python3-pip \
|
||||
python3-venv
|
||||
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
if [[ "$PCT_OSVERSION" == "11" ]]; then
|
||||
|
|
|
@ -25,6 +25,7 @@ $STD apt-get install -y \
|
|||
python3-dev \
|
||||
python3-pip \
|
||||
python3-venv
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing runlike"
|
||||
|
|
|
@ -26,6 +26,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing Motion"
|
||||
|
|
|
@ -39,7 +39,7 @@ $STD apt-get install -y \
|
|||
python3-cffi \
|
||||
python3-certbot \
|
||||
python3-certbot-dns-cloudflare
|
||||
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
$STD python3 -m venv /opt/certbot/
|
||||
msg_ok "Updated Python"
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ $STD apt-get install -y \
|
|||
python3-dev \
|
||||
python3-pip \
|
||||
python3-venv
|
||||
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
$STD apt-get install -y python3-setuptools
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
$STD apt-get install -y python3-setuptools
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing Python3 Dependencies"
|
||||
|
|
|
@ -26,6 +26,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing Tautulli"
|
||||
|
|
|
@ -24,6 +24,7 @@ $STD apt-get install -y \
|
|||
python3 \
|
||||
python3-dev \
|
||||
python3-pip
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Python3"
|
||||
|
||||
msg_info "Installing Whoogle"
|
||||
|
|
|
@ -83,9 +83,6 @@ setting_up_container() {
|
|||
echo -e " 🖧 Check Network Settings"
|
||||
exit 1
|
||||
fi
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
systemctl stop systemd-networkd-wait-online.service
|
||||
$STD systemctl disable systemd-networkd-wait-online.service
|
||||
msg_ok "Set up Container OS"
|
||||
msg_ok "Network Connected: ${BL}$(hostname -I)"
|
||||
}
|
||||
|
@ -127,21 +124,24 @@ motd_ssh() {
|
|||
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
|
||||
systemctl restart sshd
|
||||
fi
|
||||
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
||||
$STD systemctl disable systemd-networkd-wait-online.service
|
||||
fi
|
||||
}
|
||||
|
||||
# This function customizes the container by modifying the getty service and enabling auto-login for the root user
|
||||
customize() {
|
||||
if [[ "$PASSWORD" == "" ]]; then
|
||||
msg_info "Customizing Container"
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
cat <<EOF >$GETTY_OVERRIDE
|
||||
msg_info "Customizing Container"
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
cat <<EOF >$GETTY_OVERRIDE
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
systemctl daemon-reload
|
||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue