Changed PHP directory [migration included]

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-15 16:02:43 +02:00
parent 80aaf9923c
commit 3c40c8734f
2 changed files with 11 additions and 2 deletions

View File

@ -1,8 +1,13 @@
#!/bin/bash
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
if [ -f php5/bin/php ]; then
./php5/bin/php -d enable_dl=On PocketMine-MP.php $@
if [ -f ./php5/bin/php ]; then
mkdir -m 0777 bin/
mv ./php5/bin/php ./bin/php
rm -r -f ./php5/
fi
if [ -f ./bin/php ]; then
./bin/php -d enable_dl=On PocketMine-MP.php $@
read -p "Press [Enter] to continue..."
exit 0
fi