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
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ function update_script() {
|
|||
header_info
|
||||
if [ "$UPD" == "1" ]; then
|
||||
apk update && apk upgrade
|
||||
exit
|
||||
exit;
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -60,8 +60,6 @@ function update_script() {
|
|||
if [ "$UPD" == "1" ]; then
|
||||
apk update && apk upgrade
|
||||
exit;
|
||||
else
|
||||
exit-script
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -51,10 +51,7 @@ 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 \
|
||||
|
|
|
@ -51,10 +51,7 @@ 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 \
|
||||
|
|
|
@ -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.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_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_ok "Installed Omada Controller"
|
||||
|
||||
motd_ssh
|
||||
|
|
|
@ -16,15 +16,9 @@ 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() {
|
||||
|
@ -109,8 +103,5 @@ 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
|
||||
}
|
|
@ -333,7 +333,6 @@ start() {
|
|||
echo -e "⚠ User exited script \n"
|
||||
exit
|
||||
fi
|
||||
set +e
|
||||
update_script
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -15,15 +15,9 @@ 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() {
|
||||
|
@ -106,10 +100,7 @@ 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() {
|
||||
|
|
Loading…
Reference in New Issue