From bcf0a65cd4701706af1b6ea3b522c664fff9e256 Mon Sep 17 00:00:00 2001 From: Bas van den Berg <74251551+bvdberg01@users.noreply.github.com> Date: Sun, 18 May 2025 15:12:45 +0200 Subject: [PATCH] Update bar-assistant-install.sh --- install/bar-assistant-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/bar-assistant-install.sh b/install/bar-assistant-install.sh index 1fd0f63..d0fdabe 100644 --- a/install/bar-assistant-install.sh +++ b/install/bar-assistant-install.sh @@ -37,9 +37,8 @@ $STD apt-get remove -y php8.2* $STD apt-get install -y \ php8.4 \ php8.4-{ffi,opcache,redis,zip,pdo-sqlite,bcmath,pdo,curl,dom,fpm} - -PHPConfigPath=$(php --ini | grep "Loaded Configuration File" | awk -F': ' '{print $2}' | xargs) -sed -i.bak -E 's/^\s*;?\s*ffi\.enable\s*=.*/ffi.enable=true/' "$PHPConfigPath" +PHPVER=$(php -r 'echo PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION . "\n";') +sed -i.bak -E 's/^\s*;?\s*ffi\.enable\s*=.*/ffi.enable=true/' /etc/php/${PHPVER}/fpm/php.ini msg_info "Installed / configured PHP" msg_info "Installing MeiliSearch" @@ -105,6 +104,7 @@ $STD php artisan scout:sync-index-settings $STD php artisan config:cache $STD php artisan route:cache $STD php artisan event:cache +mkdir /opt/bar-assistant/storage/bar-assistant/uploads/temp chown -R www-data:www-data /opt/bar-assistant echo "${RELEASE_BARASSISTANT}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Bar Assistant"