jammsen / docker-palworld-dedicated-server

Docker container to easily provision and manage Palworld Dedicated Server
https://hub.docker.com/r/jammsen/palworld-dedicated-server
MIT License
907 stars 157 forks source link

[Bug Report] bad crontab line #100

Closed wsaddede closed 7 months ago

wsaddede commented 7 months ago

Have you read the Important information text above

Current behavior

When I first edited 'BACKUP_CRON_EXPRESSION', I set it to '5 0 0/6 ? ',
at this time the system reported an error, I decided to modify it to '0 ', but the modification didn't work, it always showed the first '5 0 0/6 * ? ', I can't find its config file in the folder , how can I change it?

[2024-01-28T04:30:02+08:00] read crontab: cronlist
[2024-01-28T04:30:02+08:00] bad crontab line: '5 0 0/6 ? /backupmanager.sh' (use -debug for details)

Desired behavior

Change the description of BACKUP_CRON_EXPRESSION.

Links to screenshots

[2024-01-28T04:30:02+08:00] read crontab: cronlist
[2024-01-28T04:30:02+08:00] bad crontab line: '5 0 0/6 ? /backupmanager.sh' (use -debug for details)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Software setup

Hardware setup

Additional context

No response

wsaddede commented 7 months ago

20240128044615

jammsen commented 7 months ago

Hey @wsaddede the cronlist gets written every time on start of the container. You can see this here: https://github.com/jammsen/docker-palworld-dedicated-server/blob/master/servermanager.sh#L343

All you need to do is to change either the ENV for your Docker run command or your Docker-Compose ENV and run docker-compose down and then docker-compose up.

wsaddede commented 7 months ago

☆⌒(*^-゜)v THX!!

jammsen commented 7 months ago

Happy it helped!