listusers.sh: disabel tls verify for rclone mkdir because we use ip address with webdav.

This commit is contained in:
Magnus Andersson 2023-10-10 10:48:43 +02:00
parent 88ee8c2b67
commit ca27f46ffe
Signed by untrusted user: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -25,7 +25,7 @@ base_dir="${project}:${bucket}"
mountpoint="/opt/statistics"
customer_dir="${mountpoint}/${location}"
mkdir -p "${customer_dir}"
rclone mkdir "${base_dir}/${location}"
rclone mkdir --no-check-certificate --webdav-headers "Host,sunet.drive.sunet.se" --use-cookies "${base_dir}/${location}"
echo "${users}" | awk 'BEGIN{print "{"} {print t "\""$1"\": \""$2"\""} {t=","} END{print "}"}' | jq . >"${customer_dir}/users.json"
status=0