Import some files and transform to working containers for:
* mysql * lighttpd (with php and mysql) * transmission * sabnzbd * sickbeard * couchpotato * headphones * btsync
This commit is contained in:
@@ -11,8 +11,6 @@ export_env PHP_TIMEZONE Europe/Amsterdam
|
||||
## PHP
|
||||
apt_get_install_temporary gcc make
|
||||
cd /opt
|
||||
#wget http://ftp.us.debian.org/debian/pool/main/l/linux/linux-libc-dev_3.2.54-2_amd64.deb
|
||||
#dpkg -i linux-libc-dev_3.2.54-2_amd64.deb
|
||||
apt_get_install_permanent libxml2-dev libcurl4-openssl-dev libbz2-dev libjpeg-dev libpng12-dev libmcrypt-dev
|
||||
wget http://uk1.php.net/get/php-$PHP_VERSION.tar.gz/from/this/mirror -O php-$PHP_VERSION.tar.gz && \
|
||||
tar xzf php-$PHP_VERSION.tar.gz && \
|
||||
@@ -21,6 +19,13 @@ cd php-$PHP_VERSION
|
||||
make
|
||||
make install
|
||||
|
||||
## Remove installation files
|
||||
if [ $MODE == "minimal" ]; then
|
||||
cd ..
|
||||
rm -r php-$PHP_VERSION
|
||||
rm php-$PHP_VERSION.tar.gz
|
||||
fi
|
||||
|
||||
## Configuration
|
||||
cp /opt/php-$PHP_VERSION/php.ini-production $PHP_CONFIG
|
||||
sed -i "s,^;\(date\.timezone\s*=\s*\)$,\1 $PHP_TIMEZONE," $PHP_CONFIG
|
||||
|
||||
Reference in New Issue
Block a user