Bug #18334
closedkatello-backup fails when called from cron
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1330757
Description of problem:
katello-backup fails when called from within a wrapper script triggered by cron
Version-Release number of selected component (if applicable):
katello-common-2.2.0.19-1.el7sat
How reproducible:
Every single time
Steps to Reproduce:
1. katello-backup fails when called from within a wrapper script triggered by cron
Actual results:
The "service" alias doesn't work when attempting to stop the postgresql service. Instead of a backup being created the script fails with the following error:
/usr/bin/katello-backup:25:in ``': No such file or directory - service pos
tgresql stop (Errno::ENOENT)
from /usr/bin/katello-backup.small:25:in `<main>'
Expected results:
Execute katello-backup without error resulting in a satellite backup
Additional info:
Line 25 of /usr/share/katello/script/katello-backup :
`service postgresql stop`