Created the mcdash.js app
This commit is contained in:
parent
9fb4639f55
commit
f1ed02aff1
38
server/handler/apps/mcdash.js
Normal file
38
server/handler/apps/mcdash.js
Normal file
@ -0,0 +1,38 @@
|
||||
module.exports = {
|
||||
variables: {
|
||||
software: "paper",
|
||||
username: "CONSOLE",
|
||||
password: "CONSOLE",
|
||||
port: 25565,
|
||||
panel: 7868,
|
||||
version: "1.20.1",
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
description: "Zugriff prüfen",
|
||||
command: "if [ $EUID -ne 0 ]; then exit 1; fi"
|
||||
},
|
||||
{
|
||||
description: "Hash generieren",
|
||||
command: "apt-get install apache2-utils -y && htpasswd -bnBC 10 \"\" {password} | tr -d ':\n' | sed 's/$2y/$2a/' > /tmp/.mchash && echo $RANDOM | md5sum | head -c 5 > /tmp/.mcinstance"
|
||||
},
|
||||
{
|
||||
description: "Spigot installieren",
|
||||
command: "curl -sSL https://create.mcdash.gnmyt.dev/install.sh | bash -s -- \"spigot\" " +
|
||||
"\"{username}: $(cat /tmp/.mchash)\" \"$(cat /tmp/.mcinstance)\" \"{port}\" \"{panel}\" \"{version}\" \"PowerTools\" \"17\"",
|
||||
condition: "software=Spigot",
|
||||
},
|
||||
{
|
||||
description: "Paper installieren",
|
||||
command: "curl -sSL https://create.mcdash.gnmyt.dev/install.sh | bash -s -- \"paper\" " +
|
||||
"\"{username}: $(cat /tmp/.mchash)\" \"$(cat /tmp/.mcinstance)\" \"{port}\" \"{panel}\" \"{version}\" \"PowerTools\" \"17\"",
|
||||
condition: "software=Paper",
|
||||
},
|
||||
{
|
||||
description: "Purpur installieren",
|
||||
command: "curl -sSL https://create.mcdash.gnmyt.dev/install.sh | bash -s -- \"purpur\" " +
|
||||
"\"{username}: $(cat /tmp/.mchash)\" \"$(cat /tmp/.mcinstance)\" \"{port}\" \"{panel}\" \"{version}\" \"PowerTools\" \"17\"",
|
||||
condition: "software=Purpur"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user