From 6afbcf5bebba82208455572a1098336de431cae4 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Tue, 10 Oct 2023 10:48:43 +0200 Subject: [PATCH] listusers.sh: disabel tls verify for rclone mkdir because we use ip address with webdav. --- templates/mariadb_backup/listusers.erb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mariadb_backup/listusers.erb.sh b/templates/mariadb_backup/listusers.erb.sh index fc9c692..115115a 100644 --- a/templates/mariadb_backup/listusers.erb.sh +++ b/templates/mariadb_backup/listusers.erb.sh @@ -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