#!/bin/bash set -x echo './panel run panel php artisan p:user:make' > add-user echo 'docker compose -f docker-compose.daemon.yml "$@"' > daemon echo 'docker compose -f docker-compose.panel.yml "$@"' > panel chmod +x add-user daemon panel ./daemon create ./panel create sudo mkdir /etc/pterodactyl sudo touch /etc/pterodactyl/config.yml ln -s /etc/pterodactyl/config.yml daemon-config.yml echo Time to create your administrator user! sleep 3 ./add-user ./panel up -d # fix log directory permissions ./panel exec panel chown -R nginx: /app/storage/logs/ echo 'Go to the panel and create your node. Follow the instructions in the README!' echo 'Press any key to open daemon config (copy + paste generated data in node Configration tab)' read -r -n1 sudo nano daemon-config.yml ./daemon up -d set +x echo Setup finished. Panel and daemon have been started.