#!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/nicedevil007/Proxmox/main/misc/build.func) # Copyright (c) 2021-2023 tteck # Author: tteck (tteckster) # License: MIT # https://github.com/nicedevil007/Proxmox/raw/main/LICENSE function header_info { clear cat <<"EOF" _ __ __ ________ __ / | / /__ _ __/ /_/ ____/ /___ __ ______/ / / |/ / _ \| |/_/ __/ / / / __ \/ / / / __ / / /| / __/> /dev/null 2>&1; then apk add -q newt fi while true; do CHOICE=$( whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --menu "Select option" 11 58 1 \ "1" "Check for Nextcloud Updates" 3>&2 2>&1 1>&3 ) exit_status=$? if [ $exit_status == 1 ]; then clear exit-script fi header_info case $CHOICE in 1) apk update && apk upgrade su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ upgrade' su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ db:add-missing-indices' exit ;; esac done } start build_container description msg_ok "Completed Successfully!\n" echo -e "${APP} should be reachable by going to the following URL. ${BL}https://${IP}${CL} \n" pct exec 101 cat ~/nextcloud.creds