From ceb3a131bffe70c71f66360190f6810401bd4b55 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 18 Feb 2024 18:47:07 -0500 Subject: [PATCH] Update grocy-install.sh revert to PHP8.2 --- install/grocy-install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install/grocy-install.sh b/install/grocy-install.sh index d86366a9..f3dc7f57 100644 --- a/install/grocy-install.sh +++ b/install/grocy-install.sh @@ -20,15 +20,18 @@ $STD apt-get install -y mc $STD apt-get install -y apt-transport-https msg_ok "Installed Dependencies" -msg_info "Installing PHP8.3" +msg_info "Installing PHP8.2" VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg echo -e "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $VERSION main" >/etc/apt/sources.list.d/php.list $STD apt-get update -$STD apt-get install -y php8.3 php8.3-{cli,bz2,curl,mbstring,intl,sqlite3,fpm,gd,zip,xml} -$STD a2enconf php8.3-fpm -systemctl reload apache2 -msg_ok "Installed PHP8.3" +$STD apt-get install -y php8.2 +$STD apt-get install -y libapache2-mod-php8.2 +$STD apt-get install -y php8.2-sqlite3 +$STD apt-get install -y php8.2-gd +$STD apt-get install -y php8.2-intl +$STD apt-get install -y php8.2-mbstring +msg_ok "Installed PHP8.2" msg_info "Installing grocy" latest=$(curl -s https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')