Compare commits

...

11 Commits

Author SHA1 Message Date
tteckster 0b4104441d
Update homeassistant-install.sh
tweak
2023-06-25 04:39:11 -04:00
tteckster 0b76e1fadc
Update homeassistant.sh
default Debian 12
2023-06-25 04:37:39 -04:00
tteckster e5d5c86c76
Update docker.sh
default Debian 12
2023-06-25 01:25:34 -04:00
tteckster 87f5379811
Update esphome.sh
default Debian 12
2023-06-25 01:19:56 -04:00
tteckster 4d50c27552
Update debian.sh
default Debian 12
2023-06-25 00:45:40 -04:00
tteckster 2caee65b10
Update install.func
tweak
2023-06-25 00:44:22 -04:00
tteckster ad8d7fce24
Update install.func
tweak
2023-06-25 00:31:16 -04:00
tteckster c72b91a4ad
tweak 2023-06-25 00:23:30 -04:00
tteckster e9c7ec22e5
Update sabnzbd.sh
default Debian 12
2023-06-25 00:18:40 -04:00
tteckster 5ceda06575
Code refactoring 2023-06-25 00:13:23 -04:00
tteckster f0a8502c96
Update install.func
tweak
2023-06-25 00:00:32 -04:00
19 changed files with 20 additions and 29 deletions

View File

@ -23,7 +23,7 @@ var_disk="2"
var_cpu="1" var_cpu="1"
var_ram="512" var_ram="512"
var_os="debian" var_os="debian"
var_version="11" var_version="12"
variables variables
color color
catch_errors catch_errors
@ -64,4 +64,4 @@ start
build_container build_container
description description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"

View File

@ -23,7 +23,7 @@ var_disk="4"
var_cpu="2" var_cpu="2"
var_ram="2048" var_ram="2048"
var_os="debian" var_os="debian"
var_version="11" var_version="12"
variables variables
color color
catch_errors catch_errors

View File

@ -23,7 +23,7 @@ var_disk="4"
var_cpu="2" var_cpu="2"
var_ram="1024" var_ram="1024"
var_os="debian" var_os="debian"
var_version="11" var_version="12"
variables variables
color color
catch_errors catch_errors

View File

@ -23,7 +23,7 @@ var_disk="16"
var_cpu="2" var_cpu="2"
var_ram="2048" var_ram="2048"
var_os="debian" var_os="debian"
var_version="11" var_version="12"
variables variables
color color
catch_errors catch_errors

View File

@ -23,7 +23,7 @@ var_disk="8"
var_cpu="2" var_cpu="2"
var_ram="2048" var_ram="2048"
var_os="debian" var_os="debian"
var_version="11" var_version="12"
variables variables
color color
catch_errors catch_errors

View File

@ -24,7 +24,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing Bazarr" msg_info "Installing Bazarr"

View File

@ -49,7 +49,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Setting up Node.js Repository" msg_info "Setting up Node.js Repository"

View File

@ -24,7 +24,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing Deluge" msg_info "Installing Deluge"

View File

@ -26,7 +26,7 @@ $STD apt-get install -y \
python3-dev \ python3-dev \
python3-pip \ python3-pip \
python3-venv python3-venv
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing ESPHome" msg_info "Installing ESPHome"

View File

@ -43,7 +43,7 @@ $STD apt-get install -y \
python3-dev \ python3-dev \
python3-pip \ python3-pip \
python3-venv python3-venv
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
if [[ "$PCT_OSVERSION" == "11" ]]; then if [[ "$PCT_OSVERSION" == "11" ]]; then

View File

@ -25,7 +25,6 @@ $STD apt-get install -y \
python3-dev \ python3-dev \
python3-pip \ python3-pip \
python3-venv python3-venv
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing runlike" msg_info "Installing runlike"

View File

@ -26,7 +26,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing Motion" msg_info "Installing Motion"

View File

@ -39,7 +39,7 @@ $STD apt-get install -y \
python3-cffi \ python3-cffi \
python3-certbot \ python3-certbot \
python3-certbot-dns-cloudflare python3-certbot-dns-cloudflare
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
$STD python3 -m venv /opt/certbot/ $STD python3 -m venv /opt/certbot/
msg_ok "Updated Python" msg_ok "Updated Python"

View File

@ -28,7 +28,7 @@ $STD apt-get install -y \
python3-dev \ python3-dev \
python3-pip \ python3-pip \
python3-venv python3-venv
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
$STD apt-get install -y python3-setuptools $STD apt-get install -y python3-setuptools
msg_ok "Updated Python3" msg_ok "Updated Python3"

View File

@ -29,7 +29,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
$STD apt-get install -y python3-setuptools $STD apt-get install -y python3-setuptools
msg_ok "Updated Python3" msg_ok "Updated Python3"

View File

@ -63,7 +63,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing Python3 Dependencies" msg_info "Installing Python3 Dependencies"

View File

@ -26,7 +26,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing Tautulli" msg_info "Installing Tautulli"

View File

@ -24,7 +24,6 @@ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing Whoogle" msg_info "Installing Whoogle"

View File

@ -83,6 +83,9 @@ setting_up_container() {
echo -e " 🖧 Check Network Settings" echo -e " 🖧 Check Network Settings"
exit 1 exit 1
fi 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 "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)" msg_ok "Network Connected: ${BL}$(hostname -I)"
} }
@ -124,24 +127,21 @@ motd_ssh() {
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd systemctl restart sshd
fi 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 # This function customizes the container by modifying the getty service and enabling auto-login for the root user
customize() { customize() {
if [[ "$PASSWORD" == "" ]]; then if [[ "$PASSWORD" == "" ]]; then
msg_info "Customizing Container" msg_info "Customizing Container"
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
mkdir -p $(dirname $GETTY_OVERRIDE) mkdir -p $(dirname $GETTY_OVERRIDE)
cat <<EOF >$GETTY_OVERRIDE cat <<EOF >$GETTY_OVERRIDE
[Service] [Service]
ExecStart= ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
EOF EOF
systemctl daemon-reload systemctl daemon-reload
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
} }