From 12454bdba78970b572505ea2c3412d4678ba39fe Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 14 Feb 2024 13:27:19 -0500 Subject: [PATCH] Update grocy.sh fixes https://github.com/tteck/Proxmox/issues/2496 --- ct/grocy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ct/grocy.sh b/ct/grocy.sh index b9c11170..f28a9200 100644 --- a/ct/grocy.sh +++ b/ct/grocy.sh @@ -56,6 +56,11 @@ function update_script() { header_info if [[ ! -f /etc/apache2/sites-available/grocy.conf ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP}" +php_version=$(php -v | head -n 1 | awk '{print $2}') +if [[ ! $php_version == "8.3"* ]]; then + apt-get install -y php8.3 + update-alternatives --set php /usr/bin/php8.3 +fi bash /var/www/html/update.sh msg_ok "Updated Successfully" exit