Skip to content

wrong path in cv sync job

The config files for the SMS/CV table syncing are currently in a wrong directory. The error occurred after the cron/scripts directory was mounted at /scriptsin cron-scheduler.

Needs to be fixed by setting the directory relative to the executed script

When creating an ext SFTP Sync Job in Crontab, the path to the sync job is defined by script = os.path.expanduser("~/scripts/sftp_sync/sftp_sync.py") which returns /home/appuser/... as it uis created in the dispatcher by appuser.

It needs to point to /home/tsm/... which is the user of the cron-scheduler.

$HOME is an env variable, that is passed to the cronab and can be used here without needing to specify the cron user in the dispatcher action

Edited by Joost Hemmen