2022-08-15 01:10:48 +02:00
#!/bin/sh
echo "\n > Upgrading brew packages...\n"
brew update
brew upgrade
# Fixes gnupg link conflicts with GPGSuite
brew unlink gnupg
echo "\n > Upgrading pecl packages...\n"
# Paths to openssl to build pecl extensions (swoole)
2023-10-29 17:50:49 +01:00
export PATH="${HOMEBREW_PREFIX}/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L${HOMEBREW_PREFIX}/opt/openssl@3/lib"
export CPPFLAGS="-I${HOMEBREW_PREFIX}/opt/openssl@3/include"
export PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/opt/openssl@3/lib/pkgconfig"
2022-08-15 01:10:48 +02:00
2023-11-03 10:12:05 +01:00
yes | pecl upgrade
2022-08-15 01:10:48 +02:00
echo "\n > Upgrading global composer packages...\n"
composer global upgrade
2022-09-09 00:46:15 +02:00
echo "\n > Running valet install...\n"
valet install
2023-11-20 10:13:13 +01:00
echo "\n > Applying Valet PHP fix for segfaults...\n"
sudo echo ";; these are an attempt to mitigate 502 errors caused by segfaults in upstream processes caused by krb5 v1.21 added in June 2023 to php's core build. Ref Issue #1433
; for gettext
env['LC_ALL'] = C
; for postgres
env['PGGSSENCMODE'] = disable
" >> ${HOMEBREW_PREFIX}/etc/php/8.2/php-fpm.d/valet-fpm.conf
echo "\n > Restarting Valet to apply patch...\n"
valet restart
2022-08-15 01:10:48 +02:00
echo "\n > Upgrading nvim packages...\n"
nvim +PlugUpgrade +PlugUpdate +qall
echo "\n > Upgrading znap plugins...\n"
znap-update
echo "\n"
echo "\n > Done 🚀 enjoy your day!\n"