Fix rclone cert issue

This commit is contained in:
Micke Nordin 2024-06-19 09:09:59 +02:00
parent a03d4437e2
commit 16496dfded

View file

@ -11,7 +11,7 @@ base_dir="${project}:${bucket}"
stat_dir="/opt/statistics" stat_dir="/opt/statistics"
customer_dir="${stat_dir}/${location}" customer_dir="${stat_dir}/${location}"
mkdir -p "${customer_dir}" 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 "${userjson}" | jq . >"${customer_dir}/users.json" echo "${userjson}" | jq . >"${customer_dir}/users.json"
status=${?} status=${?}
if [[ ${status} -eq 0 ]]; then if [[ ${status} -eq 0 ]]; then