mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "8f9b06609fb4fa313002630c359956c2e72a14d0" and "488895ad5a2bfda13e87d958f9f9ad8cb82f89d7" have entirely different histories.
8f9b06609f
...
488895ad5a
|
@ -51,7 +51,7 @@ function default_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
#if [[ ! -d /opt/cronicle ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/cronicle ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 2 \
|
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 2 \
|
||||||
"1" "Update ${APP}" ON \
|
"1" "Update ${APP}" ON \
|
||||||
"2" "Install ${APP} Worker" OFF \
|
"2" "Install ${APP} Worker" OFF \
|
||||||
|
|
|
@ -17,7 +17,6 @@ cat <<"EOF"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
add() {
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "This script will add Monitor LXC to Proxmox VE. Proceed(y/n)?" yn
|
read -p "This script will add Monitor LXC to Proxmox VE. Proceed(y/n)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
|
@ -93,22 +92,10 @@ systemctl daemon-reload
|
||||||
systemctl enable -q --now ping-containers.service
|
systemctl enable -q --now ping-containers.service
|
||||||
clear
|
clear
|
||||||
echo -e "\n To view Monitor LXC logs: cat /var/log/ping-containers.log"
|
echo -e "\n To view Monitor LXC logs: cat /var/log/ping-containers.log"
|
||||||
}
|
|
||||||
|
|
||||||
remove() {
|
# To remove Monitor LXC from Proxmox VE
|
||||||
systemctl stop ping-containers.service
|
# 1) systemctl stop ping-containers.service
|
||||||
systemctl disable ping-containers.service &>/dev/null
|
# 2) systemctl disable ping-containers.service
|
||||||
rm /etc/systemd/system/ping-containers.service
|
# 3) rm /etc/systemd/system/ping-containers.service
|
||||||
rm /usr/local/bin/ping-containers.sh
|
# 4) rm /usr/local/bin/ping-containers.sh
|
||||||
rm /var/log/ping-containers.log
|
# 5) rm /var/log/ping-containers.log
|
||||||
echo "Removed Monitor LXC from Proxmox VE"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ "$1" == "add" ]; then
|
|
||||||
add
|
|
||||||
elif [ "$1" == "remove" ]; then
|
|
||||||
remove
|
|
||||||
else
|
|
||||||
echo "Usage: $0 [add | remove]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue