Clean up SPX setup and add an autoremove to save space.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-07-06 05:29:36 -05:00
parent 563ebe0a6b
commit a2f9c78da9
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,9 @@ set -e
source /bd_build/buildconfig
set -x
apt-get -y autoremove
apt-get clean
rm -rf /var/lib/apt/lists/*
rm -rf /tmp/tmp*
rm -rf /tmp/tmp*

View File

@ -39,5 +39,6 @@ sudo make install
apt-get remove --purge -y php${PHP_VERSION}-dev zlib1g-dev build-essential
echo "extension=spx.so" >/etc/php/${PHP_VERSION}/cli/conf.d/30-spx.ini
echo "extension=spx.so" >/etc/php/${PHP_VERSION}/fpm/conf.d/30-spx.ini
echo "extension=spx.so" > /etc/php/${PHP_VERSION}/mods-available/30-spx.ini
ln -s /etc/php/${PHP_VERSION}/mods-available/30-spx.ini /etc/php/${PHP_VERSION}/cli/conf.d/30-spx.ini
ln -s /etc/php/${PHP_VERSION}/mods-available/30-spx.ini /etc/php/${PHP_VERSION}/fpm/conf.d/30-spx.ini