Make using multiple cores, add/move cleanup
This commit is contained in:
@@ -22,10 +22,17 @@ sed -i "s,\(pwd->pw_uid\s==\s\)0,\1-1," server.c
|
|||||||
sed -i "s,\(grp->gr_gid\s==\s\)0,\1-1," server.c
|
sed -i "s,\(grp->gr_gid\s==\s\)0,\1-1," server.c
|
||||||
cd ..
|
cd ..
|
||||||
./configure --with-openssl
|
./configure --with-openssl
|
||||||
make
|
make $JOBS
|
||||||
make install
|
make install
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
sed -i "s,^\(server.errorlog\s*=\s*\).*$,\1\"$LIGHTTPD_LOG\"," $LIGHTTPD_CONFIG
|
sed -i "s,^\(server.errorlog\s*=\s*\).*$,\1\"$LIGHTTPD_LOG\"," $LIGHTTPD_CONFIG
|
||||||
sed -i "s,^\(server.username\s*=\s*\).*$,\1\"root\"," $LIGHTTPD_CONFIG
|
sed -i "s,^\(server.username\s*=\s*\).*$,\1\"root\"," $LIGHTTPD_CONFIG
|
||||||
sed -i "s,^\(server.groupname\s*=\s*\).*$,\1\"root\"," $LIGHTTPD_CONFIG
|
sed -i "s,^\(server.groupname\s*=\s*\).*$,\1\"root\"," $LIGHTTPD_CONFIG
|
||||||
|
|
||||||
|
## Remove installation files
|
||||||
|
if [ $MODE == "minimal" ]; then
|
||||||
|
cd /opt
|
||||||
|
rm -r lighttpd-$LIGHTTPD_VERSION
|
||||||
|
rm lighttpd-$LIGHTTPD_VERSION.tar.gz
|
||||||
|
fi
|
||||||
|
|||||||
@@ -17,17 +17,17 @@ wget http://uk1.php.net/get/php-$PHP_VERSION.tar.gz/from/this/mirror -O php-$PH
|
|||||||
tar xzf php-$PHP_VERSION.tar.gz
|
tar xzf php-$PHP_VERSION.tar.gz
|
||||||
cd php-$PHP_VERSION
|
cd php-$PHP_VERSION
|
||||||
./configure --enable-calendar --enable-bcmath --with-bz2 --enable-ctype --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --enable-sockets --with-zlib --enable-soap --enable-zip --with-mhash --with-curl --with-gd --with-mysql --with-jpeg-dir --with-openssl --with-mysqli --with-mcrypt
|
./configure --enable-calendar --enable-bcmath --with-bz2 --enable-ctype --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --enable-sockets --with-zlib --enable-soap --enable-zip --with-mhash --with-curl --with-gd --with-mysql --with-jpeg-dir --with-openssl --with-mysqli --with-mcrypt
|
||||||
make
|
make $JOBS
|
||||||
make install
|
make install
|
||||||
|
|
||||||
## Remove installation files
|
|
||||||
if [ $MODE == "minimal" ]; then
|
|
||||||
cd ..
|
|
||||||
rm -r php-$PHP_VERSION
|
|
||||||
rm php-$PHP_VERSION.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
cp /opt/php-$PHP_VERSION/php.ini-production $PHP_CONFIG
|
cp /opt/php-$PHP_VERSION/php.ini-production $PHP_CONFIG
|
||||||
sed -i "s,^;\(date\.timezone\s*=\s*\)$,\1 $PHP_TIMEZONE," $PHP_CONFIG
|
sed -i "s,^;\(date\.timezone\s*=\s*\)$,\1 $PHP_TIMEZONE," $PHP_CONFIG
|
||||||
ln -s /usr/local/bin/php-cgi /usr/bin/php-cgi
|
ln -s /usr/local/bin/php-cgi /usr/bin/php-cgi
|
||||||
|
|
||||||
|
## Remove installation files
|
||||||
|
if [ $MODE == "minimal" ]; then
|
||||||
|
cd /opt
|
||||||
|
rm -r php-$PHP_VERSION
|
||||||
|
rm php-$PHP_VERSION.tar.gz
|
||||||
|
fi
|
||||||
@@ -14,11 +14,6 @@ mv phpMyAdmin-$PMA_VERSION-*/ phpMyAdmin-$PMA_VERSION/
|
|||||||
rm -r $PMA_ROOT/../*
|
rm -r $PMA_ROOT/../*
|
||||||
ln -s /opt/phpMyAdmin-$PMA_VERSION $PMA_ROOT
|
ln -s /opt/phpMyAdmin-$PMA_VERSION $PMA_ROOT
|
||||||
|
|
||||||
## Remove installation files
|
|
||||||
if [ $MODE == "minimal" ]; then
|
|
||||||
rm phpMyAdmin-$PMA_VERSION.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
cat << EOF > $PMA_CONFIG
|
cat << EOF > $PMA_CONFIG
|
||||||
<?php
|
<?php
|
||||||
@@ -30,3 +25,9 @@ cat << EOF > $PMA_CONFIG
|
|||||||
\$cfg['Servers'][1]['extension'] = 'mysqli';
|
\$cfg['Servers'][1]['extension'] = 'mysqli';
|
||||||
\$cfg['Servers'][1]['AllowNoPassword'] = true;
|
\$cfg['Servers'][1]['AllowNoPassword'] = true;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
## Remove installation files
|
||||||
|
if [ $MODE == "minimal" ]; then
|
||||||
|
cd /opt
|
||||||
|
rm phpMyAdmin-$PMA_VERSION-all-languages.tar.gz
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user