Compare commits

..

3 Commits

Author SHA1 Message Date
tteckster 0abd1c5b84
Update cronicle.sh
fix unbound variable
2023-04-28 09:25:14 -04:00
tteckster 0f26a686f9
Update CHANGELOG.MD 2023-04-28 09:20:11 -04:00
tteckster c92d92a499
Update monitor-lxcs.sh
tweak
2023-04-28 08:42:35 -04:00
3 changed files with 10 additions and 3 deletions

View File

@ -2,6 +2,13 @@
# Change Log # Change Log
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## 2023-04-28
### Changed
- **Proxmox VE LXC Monitor**
- NEW Script
## 2023-04-26 ## 2023-04-26
### Changed ### Changed

View File

@ -51,7 +51,6 @@ function default_settings() {
} }
function update_script() { function update_script() {
#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 \
@ -59,6 +58,7 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb
if [ "$UPD" == "1" ]; then if [ "$UPD" == "1" ]; then
header_info header_info
if [[ ! -d /opt/cronicle ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
/opt/cronicle/bin/control.sh upgrade &>/dev/null /opt/cronicle/bin/control.sh upgrade &>/dev/null
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
@ -94,7 +94,7 @@ sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json
cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled &>/dev/null cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled &>/dev/null
chmod 775 /etc/init.d/cronicled chmod 775 /etc/init.d/cronicled
update-rc.d cronicled defaults &>/dev/null update-rc.d cronicled defaults &>/dev/null
msg_ok "Installed Cronicle Worker on $hostname" msg_ok "Installed Cronicle Worker"
echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n" echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n"
exit exit
fi fi

View File

@ -109,6 +109,6 @@ if [ "$1" == "add" ]; then
elif [ "$1" == "remove" ]; then elif [ "$1" == "remove" ]; then
remove remove
else else
echo "Usage: $0 [add | remove]" echo "Usage: $0 [ -s add | -s remove ]"
exit 1 exit 1
fi fi