diff --git a/roles/cloudplow/templates/config.json.j2 b/roles/cloudplow/templates/config.json.j2 index 93427875f4..e59b4b6fe2 100644 --- a/roles/cloudplow/templates/config.json.j2 +++ b/roles/cloudplow/templates/config.json.j2 @@ -56,9 +56,9 @@ } }, "remove_empty_dir_depth": 2, - "sync_remote": "{{ (remote.remote if ':' in remote.remote else remote.remote + ':/Media') if (remote.template != 'nfs') else ('/mnt/remote/' + remote.remote.split(':')[0] if ':' in remote.remote else remote.remote) + '/Media' }}", + "sync_remote": "{{ (remote.remote if ':' in remote.remote else remote.remote + ':' + ('/' if (remote.template != 'sftp') else '') + 'Media') if (remote.template != 'nfs') else ('/mnt/remote/' + remote.remote.split(':')[0] if ':' in remote.remote else remote.remote) + '/Media' }}", "upload_folder": "{{ remote.upload_from }}", - "upload_remote": "{{ (remote.remote if ':' in remote.remote else remote.remote + ':/Media') if (remote.template != 'nfs') else ('/mnt/remote/' + remote.remote.split(':')[0] if ':' in remote.remote else remote.remote) + '/Media' }}" + "upload_remote": "{{ (remote.remote if ':' in remote.remote else remote.remote + ':' + ('/' if (remote.template != 'sftp') else '') + 'Media') if (remote.template != 'nfs') else ('/mnt/remote/' + remote.remote.split(':')[0] if ':' in remote.remote else remote.remote) + '/Media' }}" {% if loop.index == loop.length %}}{% else %}},{{ '\n' }}{% endif %} {% endfor %}