We are running conversion from CentOS 8 to AlmaLinux 8.
After OS conversion, we rebuild everything (updated DA, custombuild build , etc)
However, for user crontab file -
The original file /usr/local/directadmin/data/users/xxxx/crontab.conf
During dataskq execution, it throwed a number of -
After update, the file /usr/local/directadmin/data/users/xxxx/crontab.conf becomes:
After update , /var/spool/cron/xxxx
(Those DA users are running for years (or may be near 10 years, perhaps from CentOS 4 after a number of migration)
---
What shall I do next? (restore it or else? )
After OS conversion, we rebuild everything (updated DA, custombuild build , etc)
However, for user crontab file -
The original file /usr/local/directadmin/data/users/xxxx/crontab.conf
MAILTO=
During dataskq execution, it throwed a number of -
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
crontab returned non zero value (euid=0): "./data/users/xxxx/crontab.conf.tmp":4: bad minute
errors in crontab file, can't install.
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
crontab returned non zero value (euid=0): "./data/users/yyyy/crontab.conf.tmp":3: bad minute
errors in crontab file, can't install.
After update, the file /usr/local/directadmin/data/users/xxxx/crontab.conf becomes:
000=sh: which: line 1: syntax error: unexpected end of file
001=sh: error importing function definition for `which'
MAILTO=
PATH=/usr/local/php74/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/xxxx/bin
After update , /var/spool/cron/xxxx
#direct_crons enabled. Safe to edit this file. DirectAdmin will update accordingly.
MAILTO=""
PATH=/usr/local/php74/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/xxxx/bin
(Those DA users are running for years (or may be near 10 years, perhaps from CentOS 4 after a number of migration)
---
What shall I do next? (restore it or else? )
Last edited: