diff --git a/ct/bar-assistant.sh b/ct/bar-assistant.sh index 6e3276a..0ae6829 100644 --- a/ct/bar-assistant.sh +++ b/ct/bar-assistant.sh @@ -48,13 +48,13 @@ function update_script() { cp /opt/bar-assistant-backup/storage/bar-assistant /opt/bar-assistant/storage/bar-assistant cd /opt/bar-assistant composer install - php artisan migrate --force - php artisan storage:link - php artisan bar:setup-meilisearch - php artisan scout:sync-index-settings - php artisan config:cache - php artisan route:cache - php artisan event:cache + $STD php artisan migrate --force + $STD php artisan storage:link + $STD php artisan bar:setup-meilisearch + $STD php artisan scout:sync-index-settings + $STD php artisan config:cache + $STD php artisan route:cache + $STD php artisan event:cache echo "${RELEASE_BARASSISTANT}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE_BARASSISTANT}" diff --git a/install/bar-assistant-install.sh b/install/bar-assistant-install.sh index d0fdabe..f63cf58 100644 --- a/install/bar-assistant-install.sh +++ b/install/bar-assistant-install.sh @@ -39,6 +39,7 @@ $STD apt-get install -y \ php8.4-{ffi,opcache,redis,zip,pdo-sqlite,bcmath,pdo,curl,dom,fpm} 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 +$STD systemctl reload php${PHPVER}-fpm msg_info "Installed / configured PHP" msg_info "Installing MeiliSearch"