mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "5b1bcc0ae8cb7f2bdb666739e6e82dacd2595a87" and "7ada0b397f9af3dd8e8a8bb29f07d38fc32519c8" have entirely different histories.
5b1bcc0ae8
...
7ada0b397f
|
@ -60,13 +60,13 @@ function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [ "$UPD" == "1" ]; then
|
if [ "$UPD" == "1" ]; then
|
||||||
apk update && apk upgrade
|
apk update && apk upgrade
|
||||||
exit
|
exit;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$UPD" == "2" ]; then
|
if [ "$UPD" == "2" ]; then
|
||||||
header_info
|
header_info
|
||||||
echo "In the process of creating a method to update"
|
echo "In the process of creating a method to update"
|
||||||
exit
|
exit;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [ "$UPD" == "1" ]; then
|
if [ "$UPD" == "1" ]; then
|
||||||
apk update && apk upgrade
|
apk update && apk upgrade
|
||||||
exit
|
exit;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,8 +60,6 @@ function update_script() {
|
||||||
if [ "$UPD" == "1" ]; then
|
if [ "$UPD" == "1" ]; then
|
||||||
apk update && apk upgrade
|
apk update && apk upgrade
|
||||||
exit;
|
exit;
|
||||||
else
|
|
||||||
exit-script
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,10 +51,7 @@ function default_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
if [[ ! -d /srv/homeassistant ]]; then
|
if [[ ! -d /srv/homeassistant ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
PY=$(ls /srv/homeassistant/lib/)
|
PY=$(ls /srv/homeassistant/lib/)
|
||||||
IP=$(hostname -I | awk '{print $1}')
|
IP=$(hostname -I | awk '{print $1}')
|
||||||
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \
|
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \
|
||||||
|
|
|
@ -51,10 +51,7 @@ function default_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
if [[ ! -d /var/lib/docker/volumes/hass_config/_data ]]; then
|
if [[ ! -d /var/lib/docker/volumes/hass_config/_data ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \
|
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \
|
||||||
"1" "Update ALL Containers" ON \
|
"1" "Update ALL Containers" ON \
|
||||||
"2" "Remove ALL Unused Images" OFF \
|
"2" "Remove ALL Unused Images" OFF \
|
||||||
|
|
|
@ -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
|
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Omada Controller v5.9.31"
|
msg_info "Installing Omada Controller v5.9.9"
|
||||||
wget -qL https://static.tp-link.com/upload/software/2023/202303/20230321/Omada_SDN_Controller_v5.9.31_Linux_x64.deb
|
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.31_Linux_x64.deb
|
$STD dpkg -i Omada_SDN_Controller_v5.9.9_Linux_x64.deb
|
||||||
msg_ok "Installed Omada Controller"
|
msg_ok "Installed Omada Controller"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
|
@ -16,15 +16,9 @@ color() {
|
||||||
}
|
}
|
||||||
|
|
||||||
verb_ip6() {
|
verb_ip6() {
|
||||||
if [ "$VERBOSE" = "yes" ]; then
|
if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
|
||||||
set -x
|
|
||||||
STD=""
|
|
||||||
else STD="silent"; fi
|
|
||||||
silent() { "$@" > /dev/null 2>&1; }
|
silent() { "$@" > /dev/null 2>&1; }
|
||||||
if [ "$DISABLEIPV6" == "yes" ]; then
|
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
|
||||||
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
|
|
||||||
$STD sysctl -p
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
catch_errors() {
|
catch_errors() {
|
||||||
|
@ -109,8 +103,5 @@ update_os() {
|
||||||
motd_ssh() {
|
motd_ssh() {
|
||||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||||
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
|
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
|
||||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
if [[ "${SSH_ROOT}" == "yes" ]]; then $STD rc-update add sshd; $STD /etc/init.d/sshd start; fi
|
||||||
$STD rc-update add sshd
|
|
||||||
$STD /etc/init.d/sshd start
|
|
||||||
fi
|
|
||||||
}
|
}
|
|
@ -333,7 +333,6 @@ start() {
|
||||||
echo -e "⚠ User exited script \n"
|
echo -e "⚠ User exited script \n"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
set +e
|
|
||||||
update_script
|
update_script
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,15 +15,9 @@ color() {
|
||||||
}
|
}
|
||||||
|
|
||||||
verb_ip6() {
|
verb_ip6() {
|
||||||
if [ "$VERBOSE" = "yes" ]; then
|
if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
|
||||||
set -x
|
|
||||||
STD=""
|
|
||||||
else STD="silent"; fi
|
|
||||||
silent() { "$@" > /dev/null 2>&1; }
|
silent() { "$@" > /dev/null 2>&1; }
|
||||||
if [ "$DISABLEIPV6" == "yes" ]; then
|
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
|
||||||
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
|
|
||||||
$STD sysctl -p
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
catch_errors() {
|
catch_errors() {
|
||||||
|
@ -106,10 +100,7 @@ motd_ssh() {
|
||||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||||
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
|
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
|
||||||
chmod -x /etc/update-motd.d/*
|
chmod -x /etc/update-motd.d/*
|
||||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
if [[ "${SSH_ROOT}" == "yes" ]]; then sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config; systemctl restart sshd; fi
|
||||||
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
|
|
||||||
systemctl restart sshd
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
customize() {
|
customize() {
|
||||||
|
|
Loading…
Reference in New Issue