Updated/cleaned install scripts for void.

This commit is contained in:
2026-06-12 09:36:35 +02:00
parent 6b1217f75a
commit b32ab5a8ab
3 changed files with 36 additions and 92 deletions
+6 -15
View File
@@ -2,25 +2,16 @@
# ---------------------------------------------------------------------------------
# Golang install recipe
# Fetches the latest stable Go release, installs to /usr/local/go,
# then installs go-based CLI tools.
# Fetches the void php version
# then installs composer with php
# ---------------------------------------------------------------------------------
set -e
# install the Debian 13 php version
sudo apt install php-cli php-mysql php-curl php-mbstring php-zip
reload
# install the Void linux php version
sudo xbps-install php php-mysql php-sqlite php-ffi php-fpm php-intl php-xsl php-imagick php-gd
# install/download composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c8b085408188070d5f52bcfe4ecfbee5f727afa458b2573b8eaaf77b3419b0bf2768dc67c86944da1544f06fa544fd47') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }"
php composer-setup.php
php -r "unlink('composer-setup.php');"
# Move composer bin
sudo mv composer.phar /usr/local/bin/composer
sudo xbps-install composer
echo ""
echo "✅ PHP setup complete."
echo "✅ PHP + Composer setup complete."