Update grocy.sh

tweak
This commit is contained in:
tteckster 2024-02-15 04:47:59 -05:00 committed by GitHub
parent 12454bdba7
commit 4d06a6019b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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