This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customize.sh
48 lines (38 loc) · 2.44 KB
/
customize.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
#!/system/bin/sh
MODDIR=${0%/*}
# Teks ASCII
ui_print " ____ _ _ __ __ _ __ __ ____ _ _ _ _ _ _ "
ui_print " | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \| || | / \ _ __ __| |_ __ ___ (_) __| |"
ui_print " | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | || |_ / _ \ | '_ \ / _` | '__/ _ \| |/ _` |"
ui_print " | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/|__ _/ ___ \| | | | (_| | | | (_) | | (_| |"
ui_print " |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| |_|/_/ \_\_| |_|\__,_|_| \___/|_|\__,_|"
ui_print " "
ui_print " "
ui_print " https://github.com/TukangM/PocketMine-MP4Android "
ui_print " Made with AI generated chat.openai.com "
ui_print " https://chat.openai.com/share/8f541b0c-947d-438a-a7c1-18ac00054a93 "
# Menghapus file dan folder jika sudah ada
ui_print "Removing existing files such a PocketMine-MP.phar, bin, start.sh"
rm -f "/data/local/pmmp/PocketMine-MP.phar"
rm -rf "/data/local/pmmp/bin"
rm -f "/data/local/pmmp/start.sh"
# Membuat struktur direktori
ui_print "Creating directory for server PocketMine-MP on /data/local/pmmp"
mkdir -p "/data/local/pmmp"
# Menyalin seluruh folder pmmp
ui_print "Copy all files to pmmp"
# cp -r "$MODDIR/pmmp" "/data/local/pmmp" get cancelled
# Berikan izin eksekusi secara rekursif pada seluruh folder pmmp
ui_print "Giving chmod permission"
chmod +x -R "/data/local/pmmp"
# Berikan izin eksekusi pada start.sh
ui_print "Giving chmod permission for start.sh"
chmod +x "/data/local/pmmp/start.sh"
# Menyalin start-pmmp
ui_print "Copy start-pmmp shell script to /system/bin"
# cp "$MODDIR/start-pmmp" "/system/bin" suggest by @atrate in https://github.com/Magisk-Modules-Alt-Repo/submission/issues/215?notification_referrer_id=NT_kwDOBXOwbrM5MDc0NjgwODkyOjkxNDY3ODg2
# Berikan izin eksekusi pada start-pmmp
ui_print "Giving chmod permission for start-pmmp"
chmod +x "$MODDIR/system/start-pmmp"
# Teks tambahan
ui_print "Done - Reboot to take effect"