mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Added install scripts for linux
This commit is contained in:
parent
3e9afbdf54
commit
a495e8f436
3 changed files with 99 additions and 0 deletions
20
install.sh
Normal file
20
install.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
echo "[INFO] PocketMine-MP installer for Linux [APT VERSION] - by @shoghicp v0.1"
|
||||
if [ "$(whoami)" != 'root' ]; then
|
||||
echo "[ERROR] You must be root to run this script"
|
||||
# exit 1;
|
||||
fi
|
||||
echo "[0/4] Updating APT and fixing APT"
|
||||
apt-get -y check
|
||||
apt-get -y update
|
||||
echo "[1/4] Installing PHP5"
|
||||
./compile_php.sh
|
||||
echo "[3/4] Fetching PocketMine-MP..."
|
||||
wget https://github.com/shoghicp/PocketMine-MP/archive/master.zip -O latest.zip
|
||||
echo "[4/4] Extracting..."
|
||||
unzip -o -q latest.zip
|
||||
mv -f PocketMine-MP-master/* ./
|
||||
rm -f -r PocketMine-MP-master/
|
||||
rm -f latest.zip
|
||||
chmod 0755 ./start.sh
|
||||
echo "[INFO] Done"
|
||||
Loading…
Add table
Add a link
Reference in a new issue