mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Changed PHP directory [migration included]
This commit is contained in:
parent
80aaf9923c
commit
3c40c8734f
@ -23,8 +23,10 @@ type wget >> "$DIR/install.log" 2>&1 || { echo >&2 "[ERROR] Please install \"wge
|
|||||||
|
|
||||||
rm -r -f install_data/ >> "$DIR/install.log" 2>&1
|
rm -r -f install_data/ >> "$DIR/install.log" 2>&1
|
||||||
rm -r -f php5/ >> "$DIR/install.log" 2>&1
|
rm -r -f php5/ >> "$DIR/install.log" 2>&1
|
||||||
|
rm -r -f bin/ >> "$DIR/install.log" 2>&1
|
||||||
mkdir -m 0777 install_data >> "$DIR/install.log" 2>&1
|
mkdir -m 0777 install_data >> "$DIR/install.log" 2>&1
|
||||||
mkdir -m 0777 php5 >> "$DIR/install.log" 2>&1
|
mkdir -m 0777 php5 >> "$DIR/install.log" 2>&1
|
||||||
|
mkdir -m 0777 bin >> "$DIR/install.log" 2>&1
|
||||||
cd install_data
|
cd install_data
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -130,6 +132,8 @@ echo " done!"
|
|||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
echo -n "[INFO] Cleaning up..."
|
echo -n "[INFO] Cleaning up..."
|
||||||
rm -r -f install_data/ >> "$DIR/install.log" 2>&1
|
rm -r -f install_data/ >> "$DIR/install.log" 2>&1
|
||||||
|
mv php5/bin/php bin/php
|
||||||
|
rm -r -f php/ >> "$DIR/install.log" 2>&1
|
||||||
date >> "$DIR/install.log" 2>&1
|
date >> "$DIR/install.log" 2>&1
|
||||||
echo " done!"
|
echo " done!"
|
||||||
echo "[PocketMine] You should start the server now using \"./start.sh\""
|
echo "[PocketMine] You should start the server now using \"./start.sh\""
|
||||||
|
9
start.sh
9
start.sh
@ -1,8 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
if [ -f php5/bin/php ]; then
|
if [ -f ./php5/bin/php ]; then
|
||||||
./php5/bin/php -d enable_dl=On PocketMine-MP.php $@
|
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..."
|
read -p "Press [Enter] to continue..."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user