Actions
Bug #22551
closedsudo requires a tty while running katello-backup from cron
Status:
Closed
Priority:
Normal
Assignee:
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1540382
Description of problem:
If you run katello-backup from cron then it fails with
'sorry, you must have a tty to run sudo'
Version-Release number of selected component (if applicable):
Satellite 6.2.13
How reproducible:
100%
Steps to Reproduce:
Put this line to crontab
33 15 * * * root /usr/bin/katello-backup /var/sat-content --online-backup --skip-pulp-content >> /var/log/satellite/backups.log 2>&1
Actual results:
Starting backup: 2018-01-27 15:33:02 +1100
Creating backup folder /var/sat-content/katello-backup-20180127153302
sudo: sorry, you must have a tty to run sudo
*cancelled*
Expected results:
Completed backup
Actions