|
|
@ -337,10 +337,6 @@ 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" |
|
|
@ -385,11 +381,6 @@ if command -v pveversion >/dev/null 2>&1; then |
|
|
|
install_script |
|
|
|
install_script |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if ! command -v pveversion >/dev/null 2>&1 && [[ ! -d /opt/AdGuardHome ]]; then |
|
|
|
|
|
|
|
msg_error "No ${APP} Installation Found!" |
|
|
|
|
|
|
|
exit |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! command -v pveversion >/dev/null 2>&1; then |
|
|
|
if ! command -v pveversion >/dev/null 2>&1; then |
|
|
|
if ! (whiptail --title "${APP} LXC UPDATE" --yesno "This will update ${APP} LXC. Proceed?" 10 58); then |
|
|
|
if ! (whiptail --title "${APP} LXC UPDATE" --yesno "This will update ${APP} LXC. Proceed?" 10 58); then |
|
|
|
clear |
|
|
|
clear |
|
|
|