mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 22:41:56 +00:00
Update cronicle-v5.sh
add directory checks
This commit is contained in:
parent
8ffb8ba16d
commit
6789b685a6
@ -316,12 +316,20 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb
|
|||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
if [ "$UPD" == "1" ]; then
|
if [ "$UPD" == "1" ]; then
|
||||||
|
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}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if [ "$UPD" == "2" ]; then
|
if [ "$UPD" == "2" ]; then
|
||||||
|
if [[ -d /opt/cronicle ]]; then
|
||||||
|
msg_error "${APP} Installation Found!";
|
||||||
|
exit
|
||||||
|
fi
|
||||||
LATEST=$(curl -sL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
|
LATEST=$(curl -sL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
|
||||||
IP=$(hostname -I | awk '{print $1}')
|
IP=$(hostname -I | awk '{print $1}')
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
|
Loading…
Reference in New Issue
Block a user