Download entrypoint.sh from bikabey2/wisp: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/bikabey2/wisp/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/bikabey2/wisp/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/bikabey2/wisp/resolve/main/entrypoint.sh
1.17 kB
| set -e | |
| echo "####################################################" | |
| echo "# HF RESOURCE NODE -> WISPY BYTE VDS LINK #" | |
| echo "####################################################" | |
| # 14GB RAM Tahsisi | |
| export RAM_ALLOC="14G" | |
| # Minecraft Sunucu Dosyasını Kontrol Et | |
| if [ ! -f "server.jar" ]; then | |
| echo "[INFO] server.jar bulunamadi, Purpur 1.21.1 indiriliyor..." | |
| curl -L -o server.jar https://api.purpurmc.org/v2/purpur/1.21.1/latest/download | |
| echo "eula=true" > eula.txt | |
| fi | |
| # Sunucuyu Başlat | |
| echo "[INFO] Minecraft $RAM_ALLOC RAM ile baslatiliyor..." | |
| java -Xmx$RAM_ALLOC -Xms$RAM_ALLOC -jar server.jar nogui & | |
| # Wispy Byte VDS Bağlantı Ayarları | |
| VDS_IP="212.227.64.179" | |
| VDS_PORT="12922" | |
| echo "[INFO] Wispy Byte VDS ($VDS_IP:$VDS_PORT) tüneli aciliyor..." | |
| # Tüneli Wispy Byte'a bağlıyoruz | |
| /usr/local/bin/bore local 25565 --to $VDS_IP --port $VDS_PORT --secret vds_smp_gizli_sifre & | |
| echo "----------------------------------------------------" | |
| echo "SUNUCU VE TUNEL AKTIF!" | |
| echo "Oyuncular icin IP: $VDS_IP:$VDS_PORT" | |
| echo "----------------------------------------------------" | |
| # Logları akıt ve canlı tut | |
| tail -f /dev/null | |