mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Warn about not using the bin/ PHP binary
This commit is contained in:
parent
2b920033ff
commit
a8055eb59a
1 changed files with 6 additions and 5 deletions
11
start.sh
11
start.sh
|
|
@ -2,12 +2,13 @@
|
|||
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
||||
cd "$DIR"
|
||||
if [ -f ./php5/bin/php ]; then
|
||||
mkdir -m 0777 bin/
|
||||
mv ./php5/bin/php ./bin/php
|
||||
rm -r -f ./php5/
|
||||
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 $@
|
||||
./bin/php -d enable_dl=On PocketMine-MP.php $@
|
||||
else
|
||||
php -d enable_dl=On PocketMine-MP.php $@
|
||||
echo "[WARNING] You are not using the standalone PocketMine-MP PHP binary."
|
||||
php -d enable_dl=On PocketMine-MP.php $@
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue