Skip to content

Commit

Permalink
cloudplow: omit slash when using sftp
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Oct 14, 2023
1 parent 4033195 commit 8c04942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/cloudplow/templates/config.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit 8c04942

Please sign in to comment.