Compare commits

...

6 Commits

Author SHA1 Message Date
tteckster 5b1bcc0ae8
tweak 2023-03-22 15:21:30 -04:00
tteckster 38381bb6ef
indentation 2023-03-22 14:59:10 -04:00
tteckster 602d4496f8
indentation 2023-03-22 14:50:55 -04:00
tteckster e52813fb32
tweak 2023-03-22 13:43:26 -04:00
tteckster 9959493984
grafana exit-script 2023-03-22 12:41:41 -04:00
tteckster 089bb495d5
Update omada-install.sh
update to v5.9.31
2023-03-22 10:42:02 -04:00
11 changed files with 717 additions and 690 deletions

View File

@ -60,13 +60,13 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb
header_info
if [ "$UPD" == "1" ]; then
apk update && apk upgrade
exit;
exit
fi
if [ "$UPD" == "2" ]; then
header_info
echo "In the process of creating a method to update"
exit;
exit
fi
}

View File

@ -59,7 +59,7 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb
header_info
if [ "$UPD" == "1" ]; then
apk update && apk upgrade
exit;
exit
fi
}

View File

@ -60,6 +60,8 @@ header_info
if [ "$UPD" == "1" ]; then
apk update && apk upgrade
exit;
else
exit-script
fi
}

View File

@ -51,7 +51,10 @@ function default_settings() {
}
function update_script() {
if [[ ! -d /srv/homeassistant ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
if [[ ! -d /srv/homeassistant ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
PY=$(ls /srv/homeassistant/lib/)
IP=$(hostname -I | awk '{print $1}')
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \

View File

@ -51,7 +51,10 @@ function default_settings() {
}
function update_script() {
if [[ ! -d /var/lib/docker/volumes/hass_config/_data ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
if [[ ! -d /var/lib/docker/volumes/hass_config/_data ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \
"1" "Update ALL Containers" ON \
"2" "Remove ALL Unused Images" OFF \

View File

@ -24,9 +24,9 @@ wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiv
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
msg_ok "Installed Dependencies"
msg_info "Installing Omada Controller v5.9.9"
wget -qL https://static.tp-link.com/upload/software/2023/202302/20230227/Omada_SDN_Controller_v5.9.9_Linux_x64.deb
$STD dpkg -i Omada_SDN_Controller_v5.9.9_Linux_x64.deb
msg_info "Installing Omada Controller v5.9.31"
wget -qL https://static.tp-link.com/upload/software/2023/202303/20230321/Omada_SDN_Controller_v5.9.31_Linux_x64.deb
$STD dpkg -i Omada_SDN_Controller_v5.9.31_Linux_x64.deb
msg_ok "Installed Omada Controller"
motd_ssh

View File

@ -16,9 +16,15 @@ color() {
}
verb_ip6() {
if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
if [ "$VERBOSE" = "yes" ]; then
set -x
STD=""
else STD="silent"; fi
silent() { "$@" >/dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
if [ "$DISABLEIPV6" == "yes" ]; then
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
$STD sysctl -p
fi
}
catch_errors() {
@ -103,5 +109,8 @@ update_os() {
motd_ssh() {
echo "export TERM='xterm-256color'" >>/root/.bashrc
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" >/etc/motd
if [[ "${SSH_ROOT}" == "yes" ]]; then $STD rc-update add sshd; $STD /etc/init.d/sshd start; fi
if [[ "${SSH_ROOT}" == "yes" ]]; then
$STD rc-update add sshd
$STD /etc/init.d/sshd start
fi
}

View File

@ -333,6 +333,7 @@ start() {
echo -e "⚠ User exited script \n"
exit
fi
set +e
update_script
fi
}

View File

@ -15,9 +15,15 @@ color() {
}
verb_ip6() {
if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
if [ "$VERBOSE" = "yes" ]; then
set -x
STD=""
else STD="silent"; fi
silent() { "$@" >/dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
if [ "$DISABLEIPV6" == "yes" ]; then
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
$STD sysctl -p
fi
}
catch_errors() {
@ -100,7 +106,10 @@ motd_ssh() {
echo "export TERM='xterm-256color'" >>/root/.bashrc
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" >/etc/motd
chmod -x /etc/update-motd.d/*
if [[ "${SSH_ROOT}" == "yes" ]]; then sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config; systemctl restart sshd; fi
if [[ "${SSH_ROOT}" == "yes" ]]; then
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
}
customize() {