This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
55 lines (53 loc) · 2.52 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# ImagicalMine & ImagicalDevTools Installation Script for Linux x86_64(master)
# _ _ _ _______
# | | | | /\ | | |__ __|
# | |__| | / \ | | | |
# | __ | / /\ \ | | | |
# | | | | / ____ \ | |____ | | _
# |_| |_|/_/ \_\|______||_|(_)
#
# This file is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
# Before you start doing anything, read the license for more detail into what you are allowed to do and not do.
clear
# shopt -s extglob
echo "system> Welcome to the Tesseract and DevTools installer!"
echo "system> This installer will automatically install Tesseract and DevTools for your server!"
echo "system> Ensure you are running Linux 64-bit, or the installer will not install properly."
z="PHP_7.0.3_x86-64_Linux.tar.gz"
l="install_log/log"
le="install_log/log_errors"
lp="install_log/log_php"
lpe="install_log/log_php_errors"
w="install_log/log_wget"
wp="install_log/log_wget_php"
mkdir install_log
echo "system> Installing Tesseract..."
wget --no-check-certificate https://github.com/TesseractTeam/Tesseract/archive/master.zip >>./$w 2>>./$w
chmod 777 master.zip >>./$l 2>>./$le
unzip -o master.zip >>./$l 2>>./$le
chmod 777 Tesseract-master >>./$l 2>>./$le
cd Tesseract-master >>./$l 2>>./$le
chmod 777 src >>../$l 2>>../$le
cp -rf src .. >>../$l 2>>../$le
cd .. >>../$l 2>>../$le
rm -rf Tesseract-master >>./$l 2>>./$le
rm -rf master.zip >>./$l 2>>./$le
wget --no-check-certificate https://raw.githubusercontent.com/TesseractTeam/Tesseract/master/start.sh >>./$l 2>>./$le
wget --no-check-certificate https://raw.githubusercontent.com/TesseractTeam/Tesseract/master/LICENSE.md >>./$l 2>>./$le
chmod 755 start.sh >>./$l 2>>./$le
echo
echo "system> Installing PHP binary..."
wget --no-check-certificate https://dl.bintray.com/pocketmine/PocketMine/$z >>./$wp 2>>./$wp
chmod 777 PHP* >>./$lp 2>>./$lpe
tar zxvf PHP* >>./$lp 2>>./$lpe
rm -r PHP* >>./$lp 2>>./$lpe
wget --no-check-certificate https://raw.githubusercontent.com/BoxofDevs/BoxCore/master/tests/TravisTest.php >>./$w 2>>./$w
chmod 777 TravisTest.php >>./$l 2>>./$le
mkdir plugins >>./$l 2>>./$le
echo
echo "system> ImagicalMine & BoxCore installation completed! Installing DevTools..."
wget --no-check-certificate -O plugins/DevTools.phar https://github.com/TesseractTeam/Tesseract/releases/download/DevTools_v1.2/DevTools_v1.2.phar >>./$w 2>>./$w
echo
echo "system> Installation successfully completed!"
exit 0