Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
Fully Compatible
-
ALL
-
TIG 2018-1-29
Description
The invocation of curator on a remote EC@ host is not properly invoked using sudo:
cmds="$cmds; cmd=\"@reboot cd \$HOME && ${sudo} ./curator stat system >> ${monitor_system_file}\""
|
cmds="$cmds; (crontab -l ; echo \"\$cmd\") | crontab -"
|
cmds="$cmds; cmd=\"@reboot cd \$HOME && ${sudo} ./curator stat process-all >> ${monitor_proc_file}\""
|
cmds="$cmds; (crontab -l ; echo \"\$cmd\") | crontab -"
|
cmds="$cmds; crontab -l"
|
cmds="$cmds; { ${sudo} \$HOME/curator stat system --file ${monitor_system_file} > /dev/null 2>&1 & ${sudo} \$HOME/curator stat process-all --file ${monitor_proc_file} > /dev/null 2>&1 & } & disown"
|
The reference to ${sudo} should be changed to $sudo