pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.84k stars 1.74k forks source link

Write your own script in the schedules #3008

Open Zekhap opened 3 years ago

Zekhap commented 3 years ago

Is your feature request related to a problem? Please describe. I have always wanted a way to write my own scripts in the schedules. Instead now i need to create a new file and run it with crontab for it to be executed every x days

Describe the solution you'd like A way to create my own script code in the schedule

Describe alternatives you've considered None

Additional context Example

Pho3niX90 commented 3 years ago

This would be a great addition.

First should be a dropdown to select between an "RCON" command, or "BASH" script.

Markezzz commented 3 years ago

I have the same problem with a space engineers server. the gameserver have no console commands and the only way is a mod which works with text files for announcements. so a easy solution would be a script to create the text files with scheduler.

george-1908 commented 3 years ago

Would love this

matthewpi commented 3 years ago

I'm going to close this in favor of any issue that requests a specific action rather than a generic script. I'd prefer not making it extremely easy for users to execute any arbitrary command on a schedule and much rather have other specific actions such as delete file(s), print to console, etc.

DaneEveritt commented 3 years ago

@matthewpi I'm going to re-open this, I think we should have both, and just make this a feature flag on the instance. For a lot of non-hosts a script would be far easier, and more likely to serve their specific needs better.

TheLonelinessOfHS commented 3 years ago

I'm going to close this in favor of any issue that requests a specific action rather than a generic script. I'd prefer not making it extremely easy for users to execute any arbitrary command on a schedule and much rather have other specific actions such as delete file(s), print to console, etc.

What if I need to run a custom sync script but not a scheduled backup?

fouram commented 2 years ago

As someone right now who is struggling to get an rsync to run periodically by rebuilding your java_17 image to include rsync and cron and wishing I could just have copied a bash script in my Egg's Installation Script instead, I'm all-in for this. But yes, absolutely wall it off by default and only allow it for specific users or something. I definitely do not need my nephew executing bash scripts he found on Minecraft forums.