From 4d06a6019bc2b6fcd7007d43167c5c400db7f866 Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Thu, 15 Feb 2024 04:47:59 -0500
Subject: [PATCH] Update grocy.sh

tweak
---
 ct/grocy.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ct/grocy.sh b/ct/grocy.sh
index f28a9200..153e760a 100644
--- a/ct/grocy.sh
+++ b/ct/grocy.sh
@@ -58,6 +58,7 @@ if [[ ! -f /etc/apache2/sites-available/grocy.conf ]]; then msg_error "No ${APP}
 msg_info "Updating ${APP}"
 php_version=$(php -v | head -n 1 | awk '{print $2}')
 if [[ ! $php_version == "8.3"* ]]; then
+    apt-get update
     apt-get install -y php8.3
     update-alternatives --set php /usr/bin/php8.3
 fi