mirror of https://github.com/tteck/Proxmox.git
Compare commits
3 Commits
e5ec531d4f
...
57d06ad2be
Author | SHA1 | Date |
---|---|---|
|
57d06ad2be | |
|
05dc537124 | |
|
dd4d449c95 |
|
@ -55,7 +55,7 @@ function default_settings() {
|
|||
function update_script() {
|
||||
header_info
|
||||
if [[ ! -d /opt/tplink ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||
latest_url=$(curl -fsSL "https://www.tp-link.com/us/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1)
|
||||
latest_url=$(curl -fsSL "https://www.tp-link.com/en/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1)
|
||||
latest_version=$(basename "${latest_url}")
|
||||
if [ -z "${latest_version}" ]; then
|
||||
msg_error "It seems that the server (tp-link.com) might be down. Please try again at a later time."
|
||||
|
|
|
@ -37,7 +37,7 @@ 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 MongoDB"
|
||||
|
||||
latest_url=$(curl -fsSL "https://www.tp-link.com/us/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1)
|
||||
latest_url=$(curl -fsSL "https://www.tp-link.com/en/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1)
|
||||
latest_version=$(basename "$latest_url")
|
||||
|
||||
msg_info "Installing Omada Controller"
|
||||
|
|
|
@ -83,6 +83,10 @@ whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "$TITLE" --
|
|||
$CTID_FROM (${CTID_FROM_HOSTNAME}) -> $CTID_TO (${CTID_TO_HOSTNAME})
|
||||
Version: 2022.10.03" 13 50 || exit
|
||||
info "Home Assistant Data from '$CTID_FROM' to '$CTID_TO'"
|
||||
if [ $(pct status $CTID_FROM | sed 's/.* //') == 'running' ]; then
|
||||
msg "Stopping '$CTID_FROM'..."
|
||||
pct stop $CTID_FROM
|
||||
fi
|
||||
if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then
|
||||
msg "Stopping '$CTID_TO'..."
|
||||
pct stop $CTID_TO
|
||||
|
|
Loading…
Reference in New Issue