mirror of
https://github.com/fccview/cronmaster.git
synced 2026-01-16 09:48:34 -05:00
8 lines
274 B
TypeScript
8 lines
274 B
TypeScript
export const NSENTER_RUN_JOB = (
|
|
executionUser: string,
|
|
escapedCommand: string
|
|
) => `nsenter -t 1 -m -u -i -n -p su - ${executionUser} -c '${escapedCommand}'`;
|
|
|
|
export const NSENTER_HOST_CRONTAB = (command: string) =>
|
|
`nsenter -t 1 -m -u -i -n -p sh -c "${command}"`;
|