Recent Discussions

Go CLI installation for pterodactyl egg

Unanswered
Kromfohrländer posted this in #questions
Messages4 messages
Views0 views
KromfohrländerOP
Trying to figure out how to get this working:

#!/bin/bash

# Install system dependencies
apt update
apt install -y git wget

# Install Go
wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.6.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

mkdir /mnt/server/

# Clone repository
git clone https://github.com/df-mc/dragonfly /mnt/server/


Here's the current script, problem is that when starting with /usr/local/go/bin/go run main.go (yes main.go exists), it returns

:/home/container$ /usr/local/go/bin/go run main.go
/entrypoint.sh: line 13: /usr/local/go/bin/go: No such file or directory
KromfohrländerOP
:/home/container$ ls /usr/local/go/bin/go
ls: cannot access '/usr/local/go/bin/go': No such file or directory
KromfohrländerOP
Figured it out, one of the ptero admins made a new yolk for me
🔥
Loading...