CRON: also swap paths

Version 1.62.0


With regards to cronjobs, the script used to only rename the system crontab file. With this change, the contents of the crontab (and directadmin User's crontab.conf), will have it's internal paths swapped as well, so crons should continue to run correctly under the new User. Eg: 1 1 1 1 * echo "hello!" > /home/OLD/test.txt will now be swapped to: 1 1 1 1 * echo "hello!" > /home/NEW/test.txt within the system crontab, and DA's crontab.conf data file.

Interested to try DirectAdmin? Get a 30-day Free Trial!