Skip to content

Commit

Permalink
remote: add rclone_sftp_disable_hashcheck toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Oct 9, 2023
1 parent 879a135 commit 672fb97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/remote/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rclone_vfs_cache_min_free_space: "off"
rclone_vfs_cache_poll_interval: "1m0s"
rclone_cloud_dir_cache_time: "8760h"
rclone_sftp_dir_cache_time: "1m"
rclone_sftp_disable_hashcheck: false
rclone_service_template: "saltbox_managed_rclone_"

rclone_port_lookup: "{{ port_lookup_rclone.meta.port
Expand Down
3 changes: 3 additions & 0 deletions roles/remote/templates/sftp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ ExecStart=/usr/bin/rclone mount \
--rc \
--rc-addr=localhost:{{ rclone_remort_port }} \
--rc-no-auth \
{% if rclone_sftp_disable_hashcheck %}
--sftp-disable-hashcheck \
{% endif %}
--syslog \
--umask=002 \
--user-agent='{{ user_agent }}' \
Expand Down

0 comments on commit 672fb97

Please sign in to comment.