Allow user to specify target directory for resPackageLogs

resPackageLogs outputs the log tarball to /root/res-logs-<date_time>.tar.gz. It would be useful if the person running resPackageLogs could specify as an optional argument the target directory to place the res-logs tarball.

That way server admins can grant sudo permissions for Resilient administrators to run 'sudo resPackageLogs' without also having to grant something like 'sudo cp /root/res-logs*' as well.

Example would be:

sudo resPackageLogs --target-directory /tmp

  • Guest
  • Oct 21 2020
  • Under review
  • Attach files